Skip to content

codeigniter4/settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter Settings

This project provides database storage and retrieval of application settings, with a fallback to the config classes for CodeIgniter 4 framework.

Coverage Status

PHP CodeIgniter License

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.