dravencms / packager
Packager for dravencms
Package info
Type:dravencms-package
pkg:composer/dravencms/packager
Requires
- php: >=7.3.0
- contributte/console: ^0.9.1
- nette/bootstrap: ^3.1.1
- nette/di: ^3.0.9
- sebastian/diff: ^5.1
Requires (Dev)
- nette/tester: @dev
README
Composer package synchronizer for DravenCMS applications. It discovers packages of type dravencms-package, installs their configuration and public assets from Composer metadata, and removes artifacts belonging to packages that are no longer installed.
Installation
composer require dravencms/packager
The package installs the bin/packager executable. The dravencms/dravencms metapackage runs synchronization automatically after Composer install and update operations.
Package Metadata
Feature packages declare installable files in composer.json:
{
"type": "dravencms-package",
"extra": {
"dravencms": {
"configuration": "dravencms.config.neon",
"files": {
"assets/*": "%wwwDir%/assets/example"
}
}
}
}
Commands
Run commands through the package executable:
php vendor/dravencms/packager/bin/packager packager:sync php vendor/dravencms/packager/bin/packager packager:install dravencms/example php vendor/dravencms/packager/bin/packager packager:uninstall dravencms/example
Use packager:uninstall --purge dravencms/example to remove the installed configuration as well as package assets.
When synchronization finds a locally modified generated configuration, it prompts to keep it, display a diff, overwrite it, or stop. Review the diff before overwriting project-specific changes.
License
This package is licensed under the LGPL-3.0 license.