PHPackages                             scorpse/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. scorpse/configuration

ActiveLibrary

scorpse/configuration
=====================

Manage Supervisor configuration in PHP

0.3.2(5y ago)010MITPHPPHP &gt;=7.3

Since Jan 13Pushed 5y agoCompare

[ Source](https://github.com/Scorpse/configuration)[ Packagist](https://packagist.org/packages/scorpse/configuration)[ Docs](http://supervisorphp.com)[ RSS](/packages/scorpse-configuration/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (7)Versions (8)Used By (0)

Supervisor Configuration
========================

[](#supervisor-configuration)

[![Latest Version](https://camo.githubusercontent.com/b610fb183977428e89f57a750c49b9763a4024cd3d82153cc7abfaddef8f319b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73757065727669736f727068702f636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/supervisorphp/configuration/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/770f3d9467394c54f4e88f1d49318bae8b52c315e89af798a1894f7cda3712f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73757065727669736f727068702f636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/supervisorphp/configuration)[![Test Suite](https://github.com/supervisorphp/configuration/workflows/Test%20Suite/badge.svg?event=push)](https://github.com/supervisorphp/configuration/actions)

**Manage Supervisor configuration in PHP.**

Install
-------

[](#install)

Via Composer

```
composer require supervisorphp/configuration
```

Usage
-----

[](#usage)

Create a configuration using the builder.

```
$config = new \Supervisor\Configuration\Configuration;
$renderer = new \Indigo\Ini\Renderer;

$section = new \Supervisor\Configuration\Section\Supervisord(['identifier' => 'supervisor']);
$config->addSection($section);

$section = new \Supervisor\Configuration\Section\Program('test', ['command' => 'cat']);
$config->addSection($section);

echo $renderer->render($config->toArray());
```

The following sections are available in this package:

- *Supervisord*
- *Supervisorctl*
- *UnixHttpServer*
- *InetHttpServer*
- *Includes*\*\*
- *Group*\*
- *Program*\*
- *EventListener*\*
- *FcgiProgram*\*

\***Note:** These sections has to be instantiated with a name and optionally a properties array:

```
$section = new \Supervisor\Configuration\Section\Program('test', ['command' => 'cat']);
```

\*\***Note:** The keyword `include` is reserved in PHP, so the class name is `Includes`, but the section name is still `include`.

### Existing configuration

[](#existing-configuration)

You can parse your existing configuration, and use it as a `Configuration` object.

```
$loader = new \Supervisor\Configuration\Loader\IniFileLoader('/etc/supervisor/supervisord.conf');
$configuration = $loader->load();
```

Available loaders:

- `IniFileLoader`
- `FlysystemLoader` (Using [league/flysystem](https://github.com/thephpleague/flysystem))
- `IniStringLoader`

### Writing configuration

[](#writing-configuration)

You can use `Writer`s to write configuration to various destinations.

```
$configuration = new \Supervisor\Configuration\Configuration;

// Modify configuration...

$writer = new \Supervisor\Configuration\Writer\IniFileWriter('/etc/supervisor/supervisord.conf');
$writer->write($configuration);
```

Available writers:

- `IniFileWriter`
- `FlysystemWriter` (Using [league/flysystem](https://github.com/thephpleague/flysystem))

You can find detailed info about properties for each section here:

Testing
-------

[](#testing)

```
composer ci
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [All Contributors](https://github.com/supervisorphp/configuration/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~367 days

Recently: every ~431 days

Total

7

Last Release

1937d ago

PHP version history (3 changes)v0.1.0PHP &gt;=5.4.0

v0.2.0PHP &gt;=5.4

v0.3.0-alphaPHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/55ca8c105f8e6000e359a6ebc4da841d6c954423e3d8ef8076aa6322a3d25d9b?d=identicon)[scorpse](/maintainers/scorpse)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (63 commits)")[![BusterNeece](https://avatars.githubusercontent.com/u/6744885?v=4)](https://github.com/BusterNeece "BusterNeece (5 commits)")[![Scorpse](https://avatars.githubusercontent.com/u/51670?v=4)](https://github.com/Scorpse "Scorpse (3 commits)")[![enricog84](https://avatars.githubusercontent.com/u/5680493?v=4)](https://github.com/enricog84 "enricog84 (1 commits)")

---

Tags

configurationsupervisor

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[supervisorphp/configuration

Manage Supervisor configuration in PHP

39589.8k4](/packages/supervisorphp-configuration)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)[rezzza/vaultage

Keep secrets secret

214.4k](/packages/rezzza-vaultage)

PHPackages © 2026

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