xtreamwayz/phpbb-installer

This package is abandoned and no longer maintained. The author suggests using the xtreamwayz/phpbb-installer package instead.

Composer installer script to install phpBB 3.1 into the web root

v2.0.0 2015-05-20 09:30 UTC

This package is not auto-updated.

Last update: 2019-10-22 15:36:29 UTC


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.