Composer plugin for automatic Bootstrap asset publication in CodeIgniter 4 projects.
This package is the optional automation companion for domprojects/codeigniter4-bootstrap.
After composer install and composer update, the plugin runs:
php spark assets:publish-bootstrap --force- PHP 8.2 or newer
- Composer 2
domprojects/codeigniter4-bootstrap
Install the main package and the plugin:
composer require domprojects/codeigniter4-bootstrap
composer require domprojects/codeigniter4-bootstrap-pluginComposer may ask you to allow the plugin the first time.
Add this to the consuming project's composer.json if you want to explicitly allow the plugin in non-interactive environments:
{
"config": {
"allow-plugins": {
"domprojects/codeigniter4-bootstrap-plugin": true
}
}
}Optional behavior tuning:
{
"extra": {
"domprojects-codeigniter4-bootstrap-plugin": {
"auto-publish": true,
"force": true
}
}
}Available options:
auto-publish: enable or disable automatic publicationforce: overwrite existing files during automatic publication
Example path repositories:
{
"repositories": {
"domprojects-codeigniter4-bootstrap": {
"type": "path",
"url": "packages/domprojects/codeigniter4-bootstrap",
"options": {
"symlink": false
}
},
"domprojects-codeigniter4-bootstrap-plugin": {
"type": "path",
"url": "packages/domprojects/codeigniter4-bootstrap-plugin",
"options": {
"symlink": false
}
}
}
}MIT