https://github.com/codeigniter4/settings
Settings Library for CodeIgniter 4
https://github.com/codeigniter4/settings
codeigniter4 config settings
Last synced: about 1 month ago
JSON representation
Settings Library for CodeIgniter 4
- Host: GitHub
- URL: https://github.com/codeigniter4/settings
- Owner: codeigniter4
- License: mit
- Created: 2021-08-12T04:56:12.000Z (almost 4 years ago)
- Default Branch: develop
- Last Pushed: 2025-02-19T15:01:30.000Z (4 months ago)
- Last Synced: 2025-04-08T13:12:26.949Z (3 months ago)
- Topics: codeigniter4, config, settings
- Language: PHP
- Homepage: https://settings.codeigniter.com
- Size: 886 KB
- Stars: 89
- Watchers: 20
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# CodeIgniter Settings
This project provides database storage and retrieval of application settings, with a fallback to the
config classes for CodeIgniter 4 framework.[](https://github.com/codeigniter4/settings/actions/workflows/test.yml)
[](https://github.com/codeigniter4/settings/actions/workflows/analyze.yml)
[](https://github.com/codeigniter4/settings/actions/workflows/inspect.yml)
[](https://coveralls.io/github/codeigniter4/settings?branch=develop)

## Installation
composer require codeigniter4/settings
Migrate your database:
php spark migrate --all
## Basic usage
Set the value:
```php
service('settings')->set('App.siteName', 'Example');
```Get the value:
```php
service('settings')->get('App.siteName');
```Forget the value:
```php
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](CONTRIBUTING.md) file for details.