PHPackages                             supervisorphp/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. supervisorphp/configuration

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

supervisorphp/configuration
===========================

Manage Supervisor configuration in PHP

v0.3.0(5y ago)39589.8k↓14.2%17[4 issues](https://github.com/supervisorphp/configuration/issues)[2 PRs](https://github.com/supervisorphp/configuration/pulls)4MITPHPPHP &gt;=7.3

Since Jan 13Pushed 4y ago7 watchersCompare

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

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

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

39

—

LowBetter than 86% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~500 days

Total

5

Last Release

2143d 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/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/c93ad1068589452b1a3a4e436439bc66fcab0b8252a7a0c7a7d11557e4f3110a?d=identicon)[SlvrEagle23](/maintainers/SlvrEagle23)

---

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 (6 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/supervisorphp-configuration/health.svg)

```
[![Health](https://phpackages.com/badges/supervisorphp-configuration/health.svg)](https://phpackages.com/packages/supervisorphp-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)[josegonzalez/dotenv

dotenv file parsing for PHP

2799.8M137](/packages/josegonzalez-dotenv)[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)

PHPackages © 2026

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