PHPackages                             delgont/core - 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. delgont/core

ActiveProject

delgont/core
============

Delgont Core Functionality

v1.11.0(3mo ago)046MITPHPPHP ^7.3|^8.0|^8.1

Since Jul 2Pushed 3mo ago1 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (14)Used By (0)

Laravel Delgont Core
--------------------

[](#laravel-delgont-core)

#### Key features

[](#key-features)

- `Model options - store model properties in a key value way.`

#### Requirements

[](#requirements)

`Composer` `Laravel Framework 6.0+`

\--

### Store Model Properties In a Key Value Way

[](#store-model-properties-in-a-key-value-way)

If you want to store model properties in a key-value way in Laravel

```
// Example of storing properties in key-value way
$model = YourModel::create([
    'name' => 'Example Model',
    'description' => 'This is an example model',
    'meta' => [
        'key1' => 'value1',
        'key2' => 'value2',
    ],
]);
```

```
// app/Models/YourModel.php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Delgont\Core\Concerns\ModelHasMeta;

class YourModel extends Model
{
    use ModelHasMeta;

    protected $fillable = ['name', 'description', 'meta'];
}
```

```
// Example of using the trait to store key-value properties
$model = YourModel::create([
    'name' => 'Example Model',
    'description' => 'This is an example model',
    'meta' => [
        'key1' => 'value1',
        'key2' => 'value2',
    ],
]);

// Accessing key-value pair
$model->setMeta('key3', 'value3');
$value = $model->getMeta('key3');
```

```
php artisan make:repo TestRepository --model=App/Entities/Test
```

⚙️ System Settings Manager - Using the `Option` Model
=====================================================

[](#️-system-settings-manager---using-the-option-model)

This document explains how to manage system settings using the `Option` model in your Laravel app.

---

🧠 What This Does
----------------

[](#-what-this-does)

The `Option` model allows you to:

- Save and retrieve **individual** settings.
- Save and retrieve **groups** of settings (e.g., `accounting_settings`, `email_settings`).
- Manage system configuration in a **centralized and dynamic** way.

---

📥 Setting a Single Option
-------------------------

[](#-setting-a-single-option)

Use the static `setOption()` method to store or update a single key-value pair under a specific group.

```
use Delgont\Core\Entities\Option;

// Set the accounting method
Option::setOption('accounting_method', 'cash', 'accounting_settings');

// Set site email
Option::setOption('support_email', 'admin@example.com', 'email_settings');
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance82

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~49 days

Recently: every ~113 days

Total

13

Last Release

93d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a829a233cb9767f9bdfbc6013ba35be6a15f4c2742bb76f03a649dfc294edf4a?d=identicon)[stephen.delgont](/maintainers/stephen.delgont)

---

Top Contributors

[![stephenokelloug](https://avatars.githubusercontent.com/u/65215508?v=4)](https://github.com/stephenokelloug "stephenokelloug (13 commits)")

---

Tags

Laravel who are you

### Embed Badge

![Health badge](/badges/delgont-core/health.svg)

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

###  Alternatives

[jeremykenedy/laravel-roles

A Powerful package for handling roles and permissions in Laravel. Supports Laravel 5.3 up to 12.

1.0k826.8k7](/packages/jeremykenedy-laravel-roles)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[devio/pipedrive

Complete Pipedrive API client for PHP and/or Laravel

1691.8M](/packages/devio-pipedrive)[backstage/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24157.5k5](/packages/backstage-laravel-mails)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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