PHPackages                             tajul/lara-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. tajul/lara-config

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

tajul/lara-config
=================

Laravel 5 Config like wordpress wp\_option()

0431[1 issues](https://github.com/tajulasri/lara-config/issues)PHP

Since Mar 17Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\##Laravel 5 key value configurations using database

This package is for laravel cache learning purpose.Using laravel cache for creating config like wordpress which is stored on cache loaded from table config

installation

```
    "tajul/lara-config" : "dev-master"

```

register laraconfig services provider

```
    LaraConfig\LaraConfigServiceProvider::class,
    LaraConfig\LaraConfigFacadeServiceProvider::class,

```

Register for facades alias

```
    'LaraConfig' => LaraConfig\Facades\LaraConfigRepository::class,
```

publish vendor

```
    php artisan vendor:publish --provider=LaraConfig\LaraConfigServiceProvider

```

publish vendor dirty ways

```
    php artisan vendor:publish

```

run migration

```
    php artisan migrate

```

Basic usage

```

    use LaraConfig\LaraConfigRepository;

    class ConfigController extends Controller
    {

        public function configRouteBind(LaraConfigRepository $config) {
            $config->all();
        }
    }
```

Insert new Value

```

    use LaraConfig\LaraConfigRepository;

    class ConfigController extends Controller
    {

        public function configRouteBind(LaraConfigRepository $config) {
            try
            {
                $config->set('key','value');
            }
            catch(Exception $e) {

                return $e->getMessage();
            }
        }
    }
```

get config by key

```

    use LaraConfig\LaraConfigRepository;

    class ConfigController extends Controller
    {

        public function configRouteBind(LaraConfigRepository $config) {
            $config->get('key');
            //if key are not exists return null
        }
    }
```

Or by using facades

```

    use LaraConfig\LaraConfigRepository;

    class ConfigController extends Controller
    {

        public function configRouteBind() {
           \LaraConfig::all();
        }
    }
```

Available methods

```

    //get all config key and values
    \LaraConfig::all();

    //get config value using key
    \LaraConfig::get('key');

    //set new config value using key
     \LaraConfig::set('key','value);

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4cfd2de990b9195bd43e51fe0ed98327a47655854e6c2c8e95688b61832ea6f?d=identicon)[tajul\_asri](/maintainers/tajul_asri)

---

Top Contributors

[![tajulasri](https://avatars.githubusercontent.com/u/6530495?v=4)](https://github.com/tajulasri "tajulasri (2 commits)")

### Embed Badge

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

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

###  Alternatives

[phpsysinfo/phpsysinfo

phpSysInfo is a customizable PHP Script that parses /proc, and formats information nicely. It will display information about system facts like Uptime, CPU, Memory, PCI devices, SCSI devices, IDE devices, Network adapters, Disk usage, and more.

1.4k26.5k3](/packages/phpsysinfo-phpsysinfo)

PHPackages © 2026

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