codeigniter4 / settings
Settings library for CodeIgniter 4
Installs: 247 282
Dependents: 20
Suggesters: 0
Security: 0
Stars: 84
Watchers: 20
Forks: 24
Open Issues: 6
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- codeigniter4/devkit: ^1.1.2
- codeigniter4/framework: ^4.2.3
- rector/rector: 0.18.13
This package is auto-updated.
Last update: 2024-11-05 08:10:30 UTC
README
This project provides database storage and retrieval of application settings, with a fallback to the config classes for CodeIgniter 4 framework.
Installation
composer require codeigniter4/settings
Migrate your database:
php spark migrate --all
Basic usage
Set the value:
service('settings')->set('App.siteName', 'Example');
Get the value:
service('settings')->get('App.siteName');
Forget the value:
service('settings')->forget('App.siteName');
Docs
Read the full documentation: https://settings.codeigniter.com
Contributing
We accept and encourage contributions from the community in any shape. It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome. See the CONTRIBUTING.md file for details.