Download the PHP package move-elevator/humhub-composer-installer without Composer
On this page you can find all versions of the php package move-elevator/humhub-composer-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download move-elevator/humhub-composer-installer
More information about move-elevator/humhub-composer-installer
Files in move-elevator/humhub-composer-installer
Package humhub-composer-installer
Short Description a composer installer for the intranet software humhub.
License MIT
Informations about the package humhub-composer-installer
Humhub Composer Installer
This package installs HumHub in version 1.3.* into a web directory which can be configured in the composer.json of your project and is relative to the project-vendor dir(humhub: web-dir
).
You can also configure a configuration directory (humhub: config-dir
). In that directory you can put a project index.php, .htaccess and protected/yii which will be symlinked into the humhub web directory.
You can also configure a folder for your own modules directory (humhub: module-dir
) and for the themes directory (humhub: theme-dir
) These will also be symlinked into the humhub web directory and should be relative to the project-vendor-dir.
If there aren't any configuration files (index.php, protected/yii) provided by your project, this package will install default configuration files. These you can find in the etc/config
directory of this package.
The whole web-directory will be regenerated by any composer update or install. The generated symlinks are relative paths, so they can be compressed, for example as tar or zip file. That´s important for deployments or any other movement of the project.
To install Humhub:
Add the following lines to the composer.json of your project:
This example uses https://asset-packagist.org/ for the installation of bower and npm assets. In case you used the fxpio/composer-asset-plugin before, disable the plugin to avoid trouble. Simply add following to the composer.json:
For a detailed description visit https://asset-packagist.org/site/about.
Checks
Run each command in the current package root directory.
Execute PHPUnit tests
Execute PHPStan checks
Execute phpcs fixer
Execute checkstyle for PSR2
TroubleShooting
- This package could not handle a vendor-, web-, config-, theme- or module-directory outside the project root-directory.
- There will be created no
uploads
-directory from this package. you can link a global directory to uploads after a deployment. so you can prevent to lose all your previous uploads. - Updates or downloads from the online marketplace, will be downloaded into the folder
vendor/humhub/humhub/protected/modules
and should be moved to your originmodule-dir
.- At the moment there is no possibility in humhub to reconfigure these download-folder.
- After install a new module and move to the origin
module-dir
you should rerun the install script of this package. If you use the example above, you can runcomposer run-script post-update-cmd
TODO
- test and implement install for windows system
All versions of humhub-composer-installer with dependencies
composer/composer Version ^1.8
symfony/filesystem Version ^4.3
webmozart/glob Version ^4.1