PHPackages                             grey-dev-0/laravel-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. grey-dev-0/laravel-config

Abandoned → [grey-dev-0/laravel-config](/?search=grey-dev-0%2Flaravel-config)ArchivedLibrary

grey-dev-0/laravel-config
=========================

An extension package for Laravel 5 that creates and manipulates standard configuration files.

1.1-p(9y ago)12601MITPHP

Since Oct 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/grey-dev-0/laravel-config)[ Packagist](https://packagist.org/packages/grey-dev-0/laravel-config)[ RSS](/packages/grey-dev-0-laravel-config/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Configuration Extension
===============================

[](#laravel-configuration-extension)

An extension for the standard Laravel's `Config` class that enables developers to create and manipulate configuration files at runtime, so that configuration values are persistent across multiple requests instead of calling `Config::set()` on every request.

General Purpose
---------------

[](#general-purpose)

The standard `Config` class has no method to create nor to save new configuration files so, I made this simple package just to do these do things.

### Support

[](#support)

This package is supported in Laravel versions 5.0, 5.1, 5.2 and hopefully 5.3. And of course the package is meant to be used with the `file` driver of `Config`.

### Installation

[](#installation)

1. Use composer to install it as follows:

```
composer require grey-dev-0/laravel-config

```

2. Modify the `config/app.php` file. For Laravel 5.0
    Add this entry to the `providers` array.

```
'GreyDev\ConfigExtension\ConfigExtensionProvider'
```

Modify the `Config` value in the `aliases` array to this:

```
'GreyDev\ConfigExtension\ConfigExtensionFacade'
```

For Laravel 5.1+
Add this entry to the `providers` array.

```
GreyDev\ConfigExtension\ConfigExtensionProvider::class
```

Modify the `Config` value in the `aliases` array to this:

```
GreyDev\ConfigExtension\ConfigExtensionFacade::class
```

That's it you're good to go.

### Usage

[](#usage)

Along with other default `Config` methods like `get` and `set`, this package adds two extra methods `create` for creating new configuration file with the data you enable the users to set and, `save` which saves an existing or a new configuration value to an existing configuration file.

```
# To create a new file you can do like the following.
Config::create('myConfigFile', [
 'key1' => 'something',
 'key2' => [
  'deepData' => 'deepValues'
 ],
 'key3' => 123,
 'key4' => true
]);

# To save a value into an existing configuration file.
Config::save('myConfigFile.key4', false);
Config::save('myConfigFile.keyX', 5.2);
```

After running the code above you'll find a file in your `config` folder with the name `myConfigFile.php` containing the following data:

```
return [
  'key1' => 'something',
  'key2' => [
   'deepData' => 'deepValues'
  ],
  'key3' => 123,
  'key4' => false,
  'keyX' => 5.2
];
```

### Notes

[](#notes)

This package does **not** clear opcache if it's used so new configuration values might not be applied on the next requests until you clear it manually. In case if opcache is used make sure to call `clear_opcache()` before using `create` or `save` methods.

**License:** MIT.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1f90aa3ff74b7c16aab045a66ebf2d13ee2a19f4aa4cd61df11278cd2b37a86?d=identicon)[grey-dev-0](/maintainers/grey-dev-0)

---

Top Contributors

[![grey-dev-0](https://avatars.githubusercontent.com/u/10435349?v=4)](https://github.com/grey-dev-0 "grey-dev-0 (5 commits)")

---

Tags

laravellaravel-5-package

### Embed Badge

![Health badge](/badges/grey-dev-0-laravel-config/health.svg)

```
[![Health](https://phpackages.com/badges/grey-dev-0-laravel-config/health.svg)](https://phpackages.com/packages/grey-dev-0-laravel-config)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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