Store and manage application configuration in database for CakePHP 5 applications.
- Store configuration in database
- Auto-load configuration on bootstrap
- Type casting (string, int, float, bool, json)
- CLI command for template publishing
- Seamless CakePHP Configure integration
| Requirement | Version |
|---|---|
| PHP | >= 8.1 |
| CakePHP | ^5.0 |
No additional dependencies required.
- Add the repository to your
composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/CakePHPMitra/dbconfig"
}
]
}- Install via Composer:
composer require cakephpmitra/dbconfig:dev-main- Load the plugin:
bin/cake plugin load DbConfigOr add to src/Application.php in the bootstrap() method:
$this->addPlugin('DbConfig');- Run migrations:
bin/cake migrations migrate --plugin DbConfig- Bootstrap: Configuration loads automatically from database on application start
- Storage: Settings stored in
app_settingstable with type information - Access: Use standard
Configure::read()to access values - Dashboard: Web interface at
/db-configfor management
See the docs folder for detailed documentation:
- Features - Feature documentation
- Development - Implementation details
See CONTRIBUTING.md for guidelines.
Report bugs and feature requests on the Issue Tracker.
MIT License - see LICENSE file.