Download the PHP package arthusantiago/bootstrap-for-cakephp without Composer
On this page you can find all versions of the php package arthusantiago/bootstrap-for-cakephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arthusantiago/bootstrap-for-cakephp
More information about arthusantiago/bootstrap-for-cakephp
Files in arthusantiago/bootstrap-for-cakephp
Package bootstrap-for-cakephp
Short Description Automatically copy Bootstrap and Bootstrap Icons assets to CakePHP webroot directory
License MIT
Homepage https://github.com/arthusantiago/bootstrap-for-cakephp
Informations about the package bootstrap-for-cakephp
Bootstrap for CakePHP
Automatically copy Bootstrap and Bootstrap Icons assets to your CakePHP webroot/ directory when packages are installed or updated via Composer.
Features
- ✨ Automatic copying of Bootstrap CSS and JS files
- ✨ Automatic copying of Bootstrap Icons CSS and fonts
- 🚀 Works with Composer package install/update hooks
- 🛠️ Manual CLI command for on-demand copying
- ✅ Fully compatible with CakePHP 4.x and 5.x
- 🔧 Customizable configuration and paths
- 📝 Comprehensive logging via Composer IO interface
Installation
Install the package via Composer:
Then ensure you have Bootstrap installed:
How It Works
This package automatically detects when Bootstrap or Bootstrap Icons are installed or updated via Composer, and copies the necessary files to your CakePHP webroot/ directory:
- Bootstrap CSS/JS →
webroot/css/andwebroot/js/ - Bootstrap Icons →
webroot/css/andwebroot/css/fonts/
Usage
Automatic (Recommended)
Once installed, the package automatically copies assets whenever you:
Manual Copy
If you need to manually copy assets, use the CLI command:
Advanced Usage
Customizing Asset Paths
Extend the AssetsConfig class to customize where assets are copied:
Then register your custom config in composer.json:
Custom Implementations
Extend BootstrapAssets to implement custom logic:
Running Tests
First, install development dependencies:
Then run the test suite:
Requirements
- PHP 8.1 or higher
- CakePHP 4.0 or higher
- Composer 2.0 or higher
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests to improve this package.
Support
If you encounter any issues, please open an issue on the GitHub repository.
All versions of bootstrap-for-cakephp with dependencies
composer-plugin-api Version ^2.0