PHPackages                             afshin/live-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. afshin/live-config

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

afshin/live-config
==================

database driven configuration

1.0.0(11y ago)235MITPHPPHP &gt;=5.4.0

Since Sep 21Pushed 11y agoCompare

[ Source](https://github.com/afshinpersian/live-config)[ Packagist](https://packagist.org/packages/afshin/live-config)[ Docs](https://github.com/afshinpersian/live-config)[ RSS](/packages/afshin-live-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

live-config
===========

[](#live-config)

live config is an laravel package that help us to manage configs from database( database driven configuration system) with this small package you can manage your configuaration from database and you are not depend on filesystem configuration anymore

this is not a replacement for laravel filesystem config ( this is just simple database driven configuration system) \[setting\] if you want add some setting that user can change and manage on your laravel based site so this is awesome ! :D

===========

Requires
========

[](#requires)

```
php: >=5.4.0
illuminate/support: 4.2.*

```

Installation
============

[](#installation)

for installing this package you can use composer

\[add this line in your composer\]
`"afshin/live-config": "dev-master"`

> > after that add this to the end of your config/app.php file

`    ```'providers' => array(			.......			'Afshin\LiveConfig\LiveConfigServiceProvider'		);````you should also do the migrate to add database for configuration table &gt;&gt;&gt;

`	``php artisan migrate --package="afshin/live-config"```Usage
=====

[](#usage)

for set a config with config name and value you should use like below :
`LiveConfig::set('bank_id','xxx-xxxx-xxxx');`

``
it will save in afshin\_live\_config table in database;

`		$bankid = LiveConfig::get('bank_id')if you echo $bankid ; it will retrive xxx-xxxx-xxxx value that stored in database`also you can pass array to both functions .
`$configs = LiveConfig::get(array('bank_id','bank_name','valid_ip'));`
it retrive values of bank\_id and bank\_name and valid\_ip as an array like below
it will return this :
`	array('bank_id'=>'xxx-xxxx-xxxxx','bank_name'=>'saman','valid_ip'=>'bla bala bla');`also you can set data and value with an array with key: name of configuration and value : value of configuration

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

4247d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/337aa0e99cc065720fd88a38d4db0051accb4190d84370c5962305283af58825?d=identicon)[afshinpersian](/maintainers/afshinpersian)

---

Top Contributors

[![afshinakhgar](https://avatars.githubusercontent.com/u/2629049?v=4)](https://github.com/afshinakhgar "afshinakhgar (17 commits)")

---

Tags

configurationconfigdatabase-configdb-configlive-configdatabase configuration

### Embed Badge

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

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

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[dflydev/dot-access-configuration

Given a deep data structure representing a configuration, access configuration by dot notation.

13414.5M4](/packages/dflydev-dot-access-configuration)[dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

115254.9k1](/packages/dmishh-settings-bundle)[illuminatech/array-factory

Allows DI aware object creation from array definition

2159.6k5](/packages/illuminatech-array-factory)[caseyamcl/configula

A simple, but versatile, PHP config loader

42146.6k6](/packages/caseyamcl-configula)

PHPackages © 2026

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