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

Abandoned → [supervisorphp/configuration](/?search=supervisorphp%2Fconfiguration)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

indigophp/supervisor-configuration
==================================

Manage Supervisor configuration in PHP

v0.1.0(11y ago)02101MITPHPPHP &gt;=5.4.0

Since Jan 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/indigophp-archive/supervisor-configuration)[ Packagist](https://packagist.org/packages/indigophp/supervisor-configuration)[ Docs](https://indigophp.com)[ RSS](/packages/indigophp-supervisor-configuration/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (1)

> **DEPRECATION NOTICE**

> This package has been moved under SupervisorPHP.

>

> For details see

Indigo Supervisor Configuration
===============================

[](#indigo-supervisor-configuration)

[![Latest Version](https://camo.githubusercontent.com/5f813ffb3d546c3128f9bb3b88bfde07b94ae092fcbe50fe8d43ea9ab319c158/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/supervisor-configuration/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/316eee186d91977959865eee5c7525519e4a9cf0f62f7f5d13f360e08ee87ab1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e6469676f7068702f73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/indigophp/supervisor-configuration)[![Code Coverage](https://camo.githubusercontent.com/6f7c9e0e7114ce1121a837d512ab40feae59014408f19b2eb7a0ca11183e5534/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e6469676f7068702f73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/supervisor-configuration)[![Quality Score](https://camo.githubusercontent.com/d2e3675bcfaee16fe0783f2fcea3679fc8490f42810ad67401838d30c06cc1f5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e6469676f7068702f73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/supervisor-configuration)[![HHVM Status](https://camo.githubusercontent.com/66b880112b0871533e8b572391df6ca651fce63fc28dc7c62f01c6c005fef87d/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f696e6469676f7068702f73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/indigophp/supervisor-configuration)[![Total Downloads](https://camo.githubusercontent.com/7db3230f97e964d073036ed155ae5182026186f633e31fdb79b9dcd1a5486db2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/supervisor-configuration)[![Dependency Status](https://camo.githubusercontent.com/db094ab59af5672207c3ddd424a9d1c311c7073cb9b05f99db2c2b99e269f7ae/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f696e6469676f7068703a73757065727669736f722d636f6e66696775726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/indigophp:supervisor-configuration)

**Manage Supervisor configuration in PHP.**

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/supervisor-configuration
```

Usage
-----

[](#usage)

Create a configuration using the builder.

```
use Indigo\Supervisor\Configuration;
use Indigo\Supervisor\Configuration\Section\Supervisord;
use Indigo\Supervisor\Configuration\Section\Program;
use Indigo\Supervisor\Configuration\Renderer;

$config = new Configuration;
$renderer = new Renderer;

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

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

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

The following sections are available in this pacakge:

- *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 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.

```
use Indigo\Supervisor\Configuration;
use Indigo\Supervisor\Configuration\Parser\File;

$parser = new File('/etc/supervisor/supervisord.conf');

$configuration = new Configuration;

// argument is optional, returns a new Configuration object if not passed
$parser->parse($configuration);
```

Available parsers:

- *File*
- *Filesystem* (Using [league/flysystem](https://github.com/thephpleague/flysystem))
- *Text*

### Writting configuration

[](#writting-configuration)

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

```
use Indigo\Supervisor\Configuration;
use Indigo\Supervisor\Configuration\Writer\File;

// As a second parameter you can optionally pass an instance of Indigo\Supervisor\Configuration\Renderer
$writer = new File('/etc/supervisor/supervisord.conf');

$configuration = new Configuration;

$writer->write($configuration);
```

Available writers:

- *File*
- *Filesystem* (Using [league/flysystem](https://github.com/thephpleague/flysystem))

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

Testing
-------

[](#testing)

```
$ phpspec run
```

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/indigophp/supervisor-configuration/contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (26 commits)")

---

Tags

configurationsupervisor

### Embed Badge

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

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

Manage Supervisor configuration in PHP

39589.8k4](/packages/supervisorphp-configuration)[symfony/requirements-checker

Check Symfony requirements and give recommendations

2014.7M29](/packages/symfony-requirements-checker)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)

PHPackages © 2026

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