PHPackages                             cupoftea/easycfg - 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. cupoftea/easycfg

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

cupoftea/easycfg
================

Easily add configuration data to your Eloquent Models or Application in Laravel 5!

v1.1.2(10y ago)025MITPHP

Since Jun 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/CupOfTea696/EasyCFG)[ Packagist](https://packagist.org/packages/cupoftea/easycfg)[ RSS](/packages/cupoftea-easycfg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/2261954dc66625189181a2a88d70cf731e2c8ffc581fe7558469d4b31a3d0109/68747470733a2f2f706f7365722e707567782e6f72672f6375706f667465612f656173796366672f76657273696f6e2e737667)](https://packagist.org/packages/cupoftea/easycfg) [![Total Downloads](https://camo.githubusercontent.com/43d45cc83b837f31f1254daf6aaee50bb5eac1dd471ed1f8dfe6ca8813599ca4/68747470733a2f2f706f7365722e707567782e6f72672f6375706f667465612f656173796366672f642f746f74616c2e737667)](https://packagist.org/packages/cupoftea/easycfg) [![Latest Unstable Version](https://camo.githubusercontent.com/573f6fafbfe10dd920cbeff8f3442c4f084682f99c8eb411d2697686ffdeae22/68747470733a2f2f706f7365722e707567782e6f72672f6375706f667465612f656173796366672f762f756e737461626c652e737667)](https://packagist.org/packages/cupoftea/easycfg)[![StyleCI](https://camo.githubusercontent.com/13bbdbad2215a007f895b42ce3dfe7d79e38bd01d4062ec7f2233cb9c06855d6/68747470733a2f2f7374796c6563692e696f2f7265706f732f33363939373338342f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/36997384)[![License](https://camo.githubusercontent.com/95aeb1060d5cad9d48a60bc19a3d8d421443e0579107834c6cb4ce3ce074d7b2/68747470733a2f2f706f7365722e707567782e6f72672f6375706f667465612f656173796366672f6c6963656e73652e737667)](https://packagist.org/packages/cupoftea/easycfg)

EasyCFG
=======

[](#easycfg)

### Easily add configuration data to your Eloquent Models or Application in Laravel 5!

[](#easily-add-configuration-data-to-your-eloquent-models-or-application-in-laravel-5)

EasyCFG is a Configuration Manager for Laravel 5. It provides an easy way to save Configuration and other Metadata.

With EasyCfg, saving data related to other things, wether it is on your Application, a Class or an Object, becomes a simple task. Some use cases are User Settings and dynamic Application Configuration (e.g. in an Admin Panel), but of course you can use this however you like.

- [Documentation](http://easycfg.cupoftea.io/docs/)
- [API Reference](http://easycfg.cupoftea.io/docs/api/)

Quickstart
----------

[](#quickstart)

```
$ composer require cupoftea/easycfg ^1.1
```

```
// Global data
Cfg::set('key', 'value');
$value = Cfg::get('key');

// Class data
cfg()->set('key', 'value', MyConfigurableCommand::class);
$value = cfg('key', MyConfigurableCommand::class);

// Object data (Class instance)
// where $myobject = {"id": 1, "property": "value"}
cfg()->set('key', 'value', $myObject);
cfg()->set('foo', 'bar', MyConfigurableClass::class, $myObject->id);
$cfg = cfg()->all($myObject);

// Settings in Blade partials

// app.blade.php

    @yield('content')

// page.blade.php
@cfg('scheme', 'dark')
@section('content')
    ...
@endsection

// Rendered HTML

    ...

```

Features
--------

[](#features)

- Simple access to Configuration Data via the Facade or Helper function.
- Trait to ease setting data on Models or any other Class.
- Configurable database table.
- @cfg Blade directive.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~3 days

Total

4

Last Release

3989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2977bc0c1a9c62466102bce06ba22bca2897d5a0176087f2c6d8924e55f60c42?d=identicon)[CupOfTea696](/maintainers/CupOfTea696)

---

Top Contributors

[![CupOfTea696](https://avatars.githubusercontent.com/u/7327050?v=4)](https://github.com/CupOfTea696 "CupOfTea696 (46 commits)")

---

Tags

laravelconfigurationconfigeloquentmetadatameta

### Embed Badge

![Health badge](/badges/cupoftea-easycfg/health.svg)

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

###  Alternatives

[kodeine/laravel-meta

Fluent Meta Data for Eloquent Models, as if it is a property on your model.

426756.0k9](/packages/kodeine-laravel-meta)[kolossal-io/laravel-multiplex

A Laravel package to attach versioned meta data to Eloquent models.

29196.2k1](/packages/kolossal-io-laravel-multiplex)[elipzis/laravel-cacheable-model

Automatic query-based model cache for your Laravel app

15546.1k](/packages/elipzis-laravel-cacheable-model)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.0k1](/packages/illuminatech-config)[phoenix/eloquent-meta

Attach meta data to Eloquent models

6046.6k4](/packages/phoenix-eloquent-meta)[waad/laravel-model-metadata

A robust Laravel package for handling metadata with JSON casting, custom relation names, and advanced querying capabilities.

823.1k](/packages/waad-laravel-model-metadata)

PHPackages © 2026

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