- Composer Synchronizer is a composer plugin that synchronizes files from vendor and simplifies package installation and configuration.
- It allows you to configure any package for any framework and synchronize or configure it automatically during the package installation.
- Install the Synchronizer plugin.
composer require composer-synchronizer/composer-synchronizer
- Add composer synchronizer configuration into your project composer.json file.
"extra": {
"composer-synchronizer": {
"project-type": "nette2"
}
}
- Install package that contains composer synchronizer configuration for
nette2
or has the configuration in the Github repository.
composer require machy8/webloader
- Composer synchronizer will create a webtemp directory, file for loading extensions files and it will copy the webloader extension file into the configuration directory.
- To make it all works, just load the configuration file
composer-synchronizer.neon
in your bootstrap.php file.
- CakePhp framework - see synchronizers
- Nette framework - see synchronizers
- Yii framework - see synchronizers
Is the synchronizer for your framework missing? Send a pull request. It is easy to create a custom synchronizer. Just take a look at the docs.
Requests on remote configuration files are limited by Github rate limit.