8000 GitHub - CakePHPMitra/dbconfig: Overide/Append Configuration From Database
[go: up one dir, main page]

Skip to content

CakePHPMitra/dbconfig

Repository files navigation

DbConfig for CakePHP 5

CakePHP 5 PHP 8.1+ License: MIT

Store and manage application configuration in database for CakePHP 5 applications.

Features

  • 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

Requirements

Requirement Version
PHP >= 8.1
CakePHP ^5.0

No additional dependencies required.

Installation

  1. Add the repository to your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/CakePHPMitra/dbconfig"
        }
    ]
}
  1. Install via Composer:
composer require cakephpmitra/dbconfig:dev-main
  1. Load the plugin:
bin/cake plugin load DbConfig

Or add to src/Application.php in the bootstrap() method:

$this->addPlugin('DbConfig');
  1. Run migrations:
bin/cake migrations migrate --plugin DbConfig

How It Works

  1. Bootstrap: Configuration loads automatically from database on application start
  2. Storage: Settings stored in app_settings table with type information
  3. Access: Use standard Configure::read() to access values
  4. Dashboard: Web interface at /db-config for management

Documentation

See the docs folder for detailed documentation:

Contributing

See CONTRIBUTING.md for guidelines.

Issues

Report bugs and feature requests on the Issue Tracker.

Author

Atul Mahankal

License

MIT License - see LICENSE file.

About

Overide/Append Configuration From Database

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0