定制 xtreamwayz/phpbb-installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xtreamwayz/phpbb-installer

最新稳定版本:v2.0.0

Composer 安装命令:

composer require xtreamwayz/phpbb-installer

包简介

Composer installer script to install phpBB 3.1 into the web root

README 文档

README

This is a composer script which installs phpBB 3.1 to a given web root. The phpbb files are copied from its vendor dir. Existing files are overwritten. So make sure you don't hack the phpBB source files but use extensions and child themes.

Although this is tested on Windows 8.1 and vagrant-phpbb, use at your own risk!!! Make backups and preferable use a test server before messing up your production server.

To let phpBB know where the vendor lib is located, 2 settings are added to .htaccess. So don't hack into this file.

Getting Started

  1. In your composer.json project file require phpbb-installer.

     "require": {
         "xtreamwayz/phpbb-installer": "dev-master",
         "phpbb/phpbb": "3.1.*",
         "composer/installers": "~1.0"
     }
    
  2. Add the installer scripts.

     "scripts": {
         "post-update-cmd": "XtreamWayz\\PhpbbInstaller\\ScriptHandler::install",
         "post-install-cmd": "XtreamWayz\\PhpbbInstaller\\ScriptHandler::install"
     },
    
  3. Configure the php-install-dir and the installer-paths for phpBB extensions, styles and languages.

     "extra": {
         "phpbb-install-dir"                 : "public",
         "installer-paths": {
             "public/ext/{$vendor}/{$name}/" : ["type:phpbb-extension"],
             "public/styles/{$name}/"        : ["type:phpbb-style"],
             "public/language/{$name}/"      : ["type:phpbb-language"]
         }
     }
    
  4. Add phpBB extensions and themes.

     "require": {
         ...
         "xtreamwayz/activity": "dev-master",
         "xtreamwayz/portal": "dev-master",
         "xtreamwayz/tools": "dev-master"
     },
     "require-dev": {
         "nicofuma/webprofiler": "~1.0",
     }
    

Run composer install or composer update.

A full working example can be viewed in the vagrant-phpbb project.

统计信息

  • 总下载量: 131
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-20