PHPackages                             codeigniter4/settings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. codeigniter4/settings

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codeigniter4/settings
=====================

Settings library for CodeIgniter 4

v2.2.0(2y ago)93499.3k↓10.5%26[1 issues](https://github.com/codeigniter4/settings/issues)20MITPHPPHP ^7.4 || ^8.0CI passing

Since Nov 9Pushed 1mo ago18 watchersCompare

[ Source](https://github.com/codeigniter4/settings)[ Packagist](https://packagist.org/packages/codeigniter4/settings)[ Docs](https://github.com/codeigniter4/settings)[ RSS](/packages/codeigniter4-settings/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (20)

CodeIgniter Settings
====================

[](#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/workflows/PHPUnit/badge.svg)](https://github.com/codeigniter4/settings/actions/workflows/test.yml)[![](https://github.com/codeigniter4/settings/workflows/PHPStan/badge.svg)](https://github.com/codeigniter4/settings/actions/workflows/analyze.yml)[![](https://github.com/codeigniter4/settings/workflows/Deptrac/badge.svg)](https://github.com/codeigniter4/settings/actions/workflows/inspect.yml)[![Coverage Status](https://camo.githubusercontent.com/30e51bcaecb596d9948225787b25329c283816484d2dc3d9c8d8b2b8a9b3db3c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636f646569676e69746572342f73657474696e67732f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/codeigniter4/settings?branch=develop)

[![PHP](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)[![CodeIgniter](https://camo.githubusercontent.com/8867c0cb2bfb4e11f527658f45d11bea936efb5a06e66b10e576912cf40874e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e332d626c7565)](https://camo.githubusercontent.com/8867c0cb2bfb4e11f527658f45d11bea936efb5a06e66b10e576912cf40874e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e332d626c7565)[![License](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)

Installation
------------

[](#installation)

```
composer require codeigniter4/settings

```

Migrate your database:

```
php spark migrate --all

```

Basic usage
-----------

[](#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
----

[](#docs)

Read the full documentation:

Contributing
------------

[](#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.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance59

Moderate activity, may be stable

Popularity53

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~157 days

Recently: every ~195 days

Total

6

Last Release

864d ago

Major Versions

v1.0.0 → v2.0.02021-11-16

PHP version history (2 changes)v1.0.0PHP ^7.3 || ^8.0

v2.1.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65f693f45781e767ed8557b776fd775309e7a262629892b99cf38462931e9b26?d=identicon)[lonnieezell](/maintainers/lonnieezell)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (70 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (68 commits)")[![kenjis](https://avatars.githubusercontent.com/u/87955?v=4)](https://github.com/kenjis "kenjis (56 commits)")[![MGatner](https://avatars.githubusercontent.com/u/17572847?v=4)](https://github.com/MGatner "MGatner (46 commits)")[![lonnieezell](https://avatars.githubusercontent.com/u/51931?v=4)](https://github.com/lonnieezell "lonnieezell (27 commits)")[![michalsn](https://avatars.githubusercontent.com/u/459185?v=4)](https://github.com/michalsn "michalsn (19 commits)")[![daycry](https://avatars.githubusercontent.com/u/7590335?v=4)](https://github.com/daycry "daycry (10 commits)")[![datamweb](https://avatars.githubusercontent.com/u/9530214?v=4)](https://github.com/datamweb "datamweb (7 commits)")[![galihlasahido](https://avatars.githubusercontent.com/u/1109574?v=4)](https://github.com/galihlasahido "galihlasahido (1 commits)")

---

Tags

codeigniter4configsettingsSettingscodeignitercodeigniter4

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/codeigniter4-settings/health.svg)

```
[![Health](https://phpackages.com/badges/codeigniter4-settings/health.svg)](https://phpackages.com/packages/codeigniter4-settings)
```

###  Alternatives

[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

68187.1k82](/packages/codeigniter4-devkit)[tatter/settings

Lightweight settings management for CodeIgniter 4

239.9k3](/packages/tatter-settings)[tatter/alerts

Lightweight user alerts for CodeIgniter 4

4072.4k6](/packages/tatter-alerts)[tatter/patches

Automated project updates for CodeIgniter 4

3588.4k3](/packages/tatter-patches)[michalsn/codeigniter4-uuid

UUID and ULID package for CodeIgniter 4 with support for Model.

4728.7k4](/packages/michalsn-codeigniter4-uuid)[kenjis/ci3-to-4-upgrade-helper

Help upgrade from CodeIgniter3 to CodeIgniter4

695.9k](/packages/kenjis-ci3-to-4-upgrade-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
