PHPackages                             attrox/config-controller - 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. [Admin Panels](/categories/admin)
4. /
5. attrox/config-controller

ActiveLibrary[Admin Panels](/categories/admin)

attrox/config-controller
========================

This package provides a quick front-end admin interface to update a Laravel configuration file.

115PHP

Since Mar 12Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Config Controller
-------------------------

[](#laravel-config-controller)

This package provides a quick front-end admin interface to update a Laravel configuration file.

This is for the lazy developers who wants a quick "CMS" like admin interface to control the display of some web-page without the use of database. Just set up the Laravel configuration file and expose the page name (slug). The admin update will write back into the Laravel configuration file keeping intact the structure and comment in the config file.

### Usage Instructions

[](#usage-instructions)

Copy `vendor/attrox/config-controller/config/configcontroller.php` to Laravel `config/` folder.

Add `slug` name. This should represent the page name for both the web facing page and the admin interface page.

Add entries in `input` and `content` array for the `slug`, see the comments in `configcontroller.php` for more details.

Extends `Attrox\ConfigController\Controllers\AbstractController` and expose `admin($slug)`and `adminPost($slug)` to your routes to provide access to the configuration admin interface.

Adjust the properties of the controller (if needed):

```
protected $config_base = 'configcontroller'; // This is mapped to Laravel config/configcontroller.php
protected $admin_view = 'config_admin'; // This is the blade view used by the admin
protected $index_view = '';
```

Add a method in this controller to return the dynamic web page. `getSlugContent($slug)` will return the content that you can manipulate within your view.

Add a similar route like below:

```
$router->get('/test/{slug}', 'YourControllerClass@admin');
$router->post('/test/{slug}', 'YourControllerClass@adminPost');
$router->get('/dynamic/{$slug}', 'YourControllerClass@index');
```

Copy `vendor/attrox/config-controller/views/config_admin.blade.php` to your views folder. This is a sample admin interface view that you can include in your main view.

### Dependencies

[](#dependencies)

This package is dependent on `October\Rain\Config\Repository` package (). A package I fork from  to work with Laravel 5.x

```
"require": {
    "laravelcollective/html": "5.1.*"
}

```

Need to make the `Form` facade available ()

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/3422486?v=4)[Attrox](/maintainers/attrox)[@attrox](https://github.com/attrox)

---

Top Contributors

[![attrox](https://avatars.githubusercontent.com/u/3422486?v=4)](https://github.com/attrox "attrox (7 commits)")

### Embed Badge

![Health badge](/badges/attrox-config-controller/health.svg)

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

PHPackages © 2026

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