PHPackages                             cgm/config-admin - 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. cgm/config-admin

ActiveLibrary[Admin Panels](/categories/admin)

cgm/config-admin
================

ZF2 module for easy administration of application settings

1.2.1(13y ago)272.6k15[11 issues](https://github.com/cgmartin/CgmConfigAdmin/issues)[1 PRs](https://github.com/cgmartin/CgmConfigAdmin/pulls)BSD-3-ClausePHPPHP &gt;=5.3.3

Since Sep 19Pushed 10y ago8 watchersCompare

[ Source](https://github.com/cgmartin/CgmConfigAdmin)[ Packagist](https://packagist.org/packages/cgm/config-admin)[ Docs](https://github.com/cgmartin/CgmConfigAdmin)[ RSS](/packages/cgm-config-admin/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

CgmConfigAdmin
==============

[](#cgmconfigadmin)

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

Version 1.2.1 Created by Christopher Martin

Introduction
------------

[](#introduction)

Need to give clients access to website configuration settings?

CgmConfigAdmin is a ZF2 module for managing site-wide settings via a single web page.

[![CgmConfigAdmin example screenshot](https://github.com/cgmartin/CgmConfigAdmin/raw/master/screenshot.png)](https://github.com/cgmartin/CgmConfigAdmin/raw/master/screenshot.png)

Settings are exposed to the administration panel via a simple configuration format.

Module authors can also easily include their own specific configuration settings right from their module.config.php file.

### UPDATES IN 1.2.1

[](#updates-in-121)

Please see [CHANGELOG.md](CHANGELOG.md).

Requirements
------------

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2)
- [ZfcBase](https://github.com/ZF-Commons/ZfcBase)
- A Database or Key/Value store

Installation
------------

[](#installation)

### Composer / Packagist

[](#composer--packagist)

```
% composer.phar require cgm/config-admin
Please provide a version constraint for the cgm/config-admin requirement: dev-master

```

### Main Setup

[](#main-setup)

1. Install the [ZfcBase](https://github.com/ZF-Commons/ZfcBase) ZF2 module by cloning it into `./vendor/` and enabling `ZfcBase` in your `application.config.php` file.
2. Clone this project into your `./vendor/` directory and enable `CgmConfigAdmin` in your `application.config.php` file.
3. Copy `./vendor/CgmConfigAdmin/config/cgmconfigadmin.global.php.dist` to `./config/autoload/cgmconfigadmin.global.php` and change the values as desired.
4. Import the SQL schema located in `./vendor/CgmConfigAdmin/data/schema.sql`.
5. Navigate to `/config-admin` and try it out.

### Post-Install

[](#post-install)

Protect the `/config-admin` route with an authorization module, such as [ZfcRbac](https://github.com/ZF-Commons/ZfcRbac) or [BjyAuthorize](https://github.com/bjyoungblood/BjyAuthorize). The route can be changed in the `./config/autoload/cgmconfigadmin.global.php` file.

### Database Adapter Configuration

[](#database-adapter-configuration)

If you do not already have a valid Zend\\Db\\Adapter\\Adapter in your service manager configuration, put the following in `./config/autoload/database.local.php`:

```
