PHPackages                             zfcampus/zf-configuration - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. zfcampus/zf-configuration

Abandoned → [laminas-api-tools/api-tools-configuration](/?search=laminas-api-tools%2Fapi-tools-configuration)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

zfcampus/zf-configuration
=========================

Zend Framework module providing a REST resource for manipulating configuration

1.3.3(8y ago)91.6M—7.5%10[2 PRs](https://github.com/zfcampus/zf-configuration/pulls)9BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Oct 3Pushed 6y ago9 watchersCompare

[ Source](https://github.com/zfcampus/zf-configuration)[ Packagist](https://packagist.org/packages/zfcampus/zf-configuration)[ RSS](/packages/zfcampus-zf-configuration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (22)Used By (9)

ZF Configuration
================

[](#zf-configuration)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas-api-tools/api-tools-configuration](https://github.com/laminas-api-tools/api-tools-configuration).

[![Build Status](https://camo.githubusercontent.com/fd40c1cfeacbffe2cd91c5749d3c2d740ce4ac3a57513880daf4bfadaf8e0016/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a6663616d7075732f7a662d636f6e66696775726174696f6e2e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zfcampus/zf-configuration)[![Coverage Status](https://camo.githubusercontent.com/9b3ca2e7d25bc264140762d6b869766bb390bf9b7f753473ab4c5c2df24fdb3e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a6663616d7075732f7a662d636f6e66696775726174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zfcampus/zf-configuration?branch=master)

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

[](#introduction)

zf-configuration is a module that provides configuration services that provide for the runtime management and modification of Zend Framework application configuration files.

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

[](#requirements)

Please see the [composer.json](composer.json) file.

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

[](#installation)

Run the following `composer` command:

```
$ composer require zfcampus/zf-configuration
```

Alternately, manually add the following to your `composer.json`, in the `require` section:

```
"require": {
    "zfcampus/zf-configuration": "^1.2"
}
```

And then run `composer update` to ensure the module is installed.

Finally, add the module name to your project's `config/application.config.php` under the `modules`key:

```
return [
    /* ... */
    'modules' => [
        /* ... */
        'ZF\Configuration',
    ],
    /* ... */
];
```

> ### zf-component-installer
>
> [](#zf-component-installer)
>
> If you use [zf-component-installer](https://github.com/zendframework/zf-component-installer), that plugin will install zf-configuration as a module for you.

Configuration
-------------

[](#configuration)

### User Configuration

[](#user-configuration)

The top-level configuration key for user configuration of this module is `zf-configuration`.

```
'zf-configuration' => [
    'config_file' => 'config/autoload/development.php',
    'enable_short_array' => false,
    'class_name_scalars' => false,
],
```

#### Key: `enable_short_array`

[](#key-enable_short_array)

Set this value to a boolean `true` if you want to use PHP 5.4's square bracket (aka "short") array syntax.

#### Key: `class_name_scalars`

[](#key-class_name_scalars)

- Since 1.2.1

Set this value to a boolean `true` if you want to use PHP 5.5's class name scalars (`::class` notation).

### ZF Events

[](#zf-events)

There are no events or listeners.

### ZF Services

[](#zf-services)

#### ZF\\Configuration\\ConfigWriter

[](#zfconfigurationconfigwriter)

`ZF\Configuration\ConfigWriter` is by default an instance of `Zend\Config\Writer\PhpArray`. This service serves the purpose of providing the necessary dependencies for `ConfigResource` and `ConfigResourceFactory`.

#### ZF\\Configuration\\ConfigResource

[](#zfconfigurationconfigresource)

`ZF\Configuration\ConfigResource` service is used for modifying an existing configuration files with methods such as `patch()` and `replace()`. The service returned by the service manager is bound to the file specified in the `config_file` key.

#### ZF\\Configuration\\ConfigResourceFactory

[](#zfconfigurationconfigresourcefactory)

`ZF\Configuration\ConfigResourceFactory` is a factory service that provides consumers with the ability to create `ZF\Configuration\ConfigResource` objects, with dependencies injected for specific config files (not the one listed in the `module.config.php`.

#### ZF\\Configuration\\ModuleUtils

[](#zfconfigurationmoduleutils)

`ZF\Configuration\ModuleUtils` is a service that consumes the `ModuleManager` and provides the ability to traverse modules to find their path on disk as well as the path to their configuration files.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80.9% 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 ~93 days

Recently: every ~158 days

Total

19

Last Release

2934d ago

Major Versions

0.9.0 → 1.0.0beta12014-03-18

PHP version history (5 changes)0.6.0PHP &gt;=5.3.3

0.8.0PHP &gt;=5.4.8

0.9.1PHP &gt;=5.3.23

1.1.0PHP &gt;=5.5

1.2.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (161 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (22 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (8 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (2 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (2 commits)")[![xjchengo](https://avatars.githubusercontent.com/u/4819996?v=4)](https://github.com/xjchengo "xjchengo (1 commits)")[![rodsouto](https://avatars.githubusercontent.com/u/1918738?v=4)](https://github.com/rodsouto "rodsouto (1 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")[![thomasvargiu](https://avatars.githubusercontent.com/u/732012?v=4)](https://github.com/thomasvargiu "thomasvargiu (1 commits)")

---

Tags

restconfigZendFrameworkzfmodule

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zfcampus-zf-configuration/health.svg)

```
[![Health](https://phpackages.com/badges/zfcampus-zf-configuration/health.svg)](https://phpackages.com/packages/zfcampus-zf-configuration)
```

###  Alternatives

[zhuravljov/yii2-rest

Yii2 REST Client

1186.2k](/packages/zhuravljov-yii2-rest)

PHPackages © 2026

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