PHPackages                             inoplate/config - 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. [Database &amp; ORM](/categories/database)
4. /
5. inoplate/config

ActiveComposer[Database &amp; ORM](/categories/database)

inoplate/config
===============

Inoplate configuration repository

v0.0.3(9y ago)014MITPHP

Since Aug 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/inoplate/config)[ Packagist](https://packagist.org/packages/inoplate/config)[ RSS](/packages/inoplate-config/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

Inoplate database configuration
-------------------------------

[](#inoplate-database-configuration)

Inoplate database configuration is a PHP package to load configuration from database.

Example
-------

[](#example)

```
$config->has($key) // determine if config has value
$config->get($key, $default); // retrieve config value from database
$config->all() // retrieve all configuration
$config->set($key, $value, $cacheExpiration); // set config value to database and automatically cached. Default cache expiration is 10 minutes
```

Instalation
-----------

[](#instalation)

> composer install inoplate/config

Integration
-----------

[](#integration)

Currently this package only provide integration to [Laravel ^5.3](https://www.laravel.com). To integrate, please follow the steps described below.

>

```
1. Add Inoplate\Config\Laravel\ConfigServiceProvider to your providers configuration.
2. Migrate your database.
3. Change the bootstrappers on your kernel, this file defaultly located in app/Http/Kernel.php and app/Console/Kernel.php.
4. Look at their parent class, we need to overrider the bootstrappers property.
  * For Http located at vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
  * For Console loacated at vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php
5. Copy and paste the bootstrappers and change 'Illuminate\Foundation\Bootstrap\LoadConfiguration' with 'Inoplate\Config\Laravel\LoadConfiguration'
6. Use as usual

```

**Please Note.**

>

```
1. This package will only persist config via set() call. Call via push(), prepend() and ArrayAccess will not persisted.
2. This package will do necessary cache under the hood
3. Use fully qualified name such as "app.name" and it's value. This package is not supporting nested key such as [app => ['name' => 'My Application', 'site' => 'https://mysites.com']] yet

```

**Running the tests**

This package using phpspec as specification testing and PHPUnit as integration testing. To run phpspec simply run **vendor/bin/phpspec run**. To run laravel integration test run **vendor/bin/phpunit -c tests/laravel/phpunit.xml**.

**Contribution**

Thank you for considering contributing to the this package. Just create pull request to and elaborate your purpose. We can discuss about the coding standart, branching strategy, etc.

**License**

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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 ~0 days

Total

3

Last Release

3608d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3146109?v=4)[Mohammad Roseffendi](/maintainers/roseffendi)[@roseffendi](https://github.com/roseffendi)

---

Tags

phplaravelconfigdatabase

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inoplate-config/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M91](/packages/mongodb-laravel-mongodb)[renoki-co/l1

Laravel integration for Cloudflare Workers services.

16318.8k](/packages/renoki-co-l1)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

266.8k](/packages/ntanduy-cloudflare-d1-database)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.5k1](/packages/illuminatech-config)[cornford/setter

An easy way to integrate Database Settings with Laravel.

131.0k](/packages/cornford-setter)

PHPackages © 2026

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