PHPackages                             narrowspark/configurators - 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. [Framework](/categories/framework)
4. /
5. narrowspark/configurators

AbandonedArchivedAutomatic-configurator[Framework](/categories/framework)

narrowspark/configurators
=========================

Automatic configurators for the narrowspark framework

0.8.0(6y ago)22002[2 PRs](https://github.com/narrowspark/configurators/pulls)MITPHPPHP ^7.3

Since May 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/narrowspark/configurators)[ Packagist](https://packagist.org/packages/narrowspark/configurators)[ RSS](/packages/narrowspark-configurators/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (7)Versions (14)Used By (0)

Automatic Narrowspark Framework Configurators
---------------------------------------------

[](#automatic-narrowspark-framework-configurators)

 [![](https://camo.githubusercontent.com/a26120b41e9e585c6186345b382472fcf0343ba904fedf39ae4c5eea13dff478/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6172726f77737061726b2f636f6e666967757261746f72732e7376673f7374796c653d666c61742d737175617265)](https://github.com/narrowspark/configurators/releases) [![](https://camo.githubusercontent.com/a4fe7000eff0deee11fb18648b92bea8bc241cb65e3842d640c073f5c459d4d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545372e332e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/) [![](https://camo.githubusercontent.com/4461d0e7795fa24b9a0c525212b304ed7acdf1bd8e7150dcf0296744af782ee1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f727573742d6c616e672f727573742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/narrowspark/configurators) [![](https://camo.githubusercontent.com/3c1916052427916bd2e092b06e504c77ea118228a7acce38492276ad96be6d96/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6e6172726f77737061726b2f636f6e666967757261746f72732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/narrowspark/configurators) [![](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://opensource.org/licenses/MIT)

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

[](#installation)

```
composer require narrowspark/automatic narrowspark/configurators
```

Configurators
-------------

[](#configurators)

There are several types of tasks, which are called **configurators:**`options`, `bootstrap` and `providers`.

`providers` Configurator

Turns on one or more service provider in the Narrowspark app by appending them to the `serviceproviders.php` file. Its value is an associative array where the key is the service provider class name and the value is an array of environments where it must be used. The supported environments are `local`, `prod`, `testing` and `global` (which enables the `service provider` in all environments):

```
{
    "extra": {
        "automatic": {
            "providers": {
                "Viserio\\Component\\Routing\\Provider\\RoutingServiceProvider": [
                    "global"
                ],
                "Viserio\\Component\\Routing\\Provider\\RoutingDataCollectorServiceProvider": [
                    "testing"
                ]
            }
        }
    }
}
```

The previous operation is transformed into the following PHP code:

```
// config/serviceproviders.php
return [
    /** > viserio/routing **/
    \Viserio\Component\Routing\Provider\RoutingServiceProvider::class,
    /** viserio/routing < **/
];

// config/testing/serviceproviders.php
return [
    /** > viserio/routing **/
    \Viserio\Component\Routing\Provider\RoutingDataCollectorServiceProvider::class,
    /** viserio/routing < **/
];
```

`options` Configurator

Adds new config files to the `config` folder provided from your root composer.json `config-dir` name.

> **Note:** the package name is taken to generate the file name.

This example creates a new `view` config file in the `packages` folder and `packages/test` folder:

> **Note:** the first array key is taken as environment key, like `global` or `test` in this example.

```
{
    "extra": {
        "automatic": {
            "options": {
                "global": {
                    "viserio": {
                        "view": {
                            "paths": null
                        }
                    }
                },
                "test": {
                    "viserio": {
                        "view": {
                            "paths": [
                                "./views/"
                            ]
                        }
                    }
                }
            }
        }
    }
}
```

`bootstrap` Configurator

This example creates new `bootstrap` configs for the `console` and `http` kernel: you can choose between `http`, `console` and `global` type to configure your kernel bootstraps, with the possibility to configure bootstraps for your chosen environment.

> **Note:** generates a new `bootstrap.php` file to the `config` folder provided from your root composer.json `config-dir` name, if the file doesn’t exists.

> **Note:** the `global` type will configure both kernels.

```
{
    "extra": {
        "automatic": {
            "bootstrap": {
                "Viserio\\Component\\Foundation\\Bootstrap\\LoadEnvironmentVariables": ["http"]
            }
        }
    }
}
```

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

[](#contributing)

If you would like to help take a look at the [list of issues](https://github.com/narrowspark/configurators/issues) and check our [Contributing](CONTRIBUTING.md) guild.

> **Note:** please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits
-------

[](#credits)

- [Daniel Bannert](https://github.com/prisis)
- [All Contributors](https://github.com/narrowspark/automatic/graphs/contributors)

License
-------

[](#license)

The Narrowspark configurators is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.3% 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 ~56 days

Recently: every ~104 days

Total

11

Last Release

2411d ago

PHP version history (2 changes)v0.1.0PHP ^7.2

0.8.0PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6816093?v=4)[DANMEDOC33](/maintainers/dani33)[@dani33](https://github.com/dani33)

---

Top Contributors

[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (29 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

automaticautomatic-configuratorsnarrowsparknarrowspark-frameworkphp73automaticnarrowsparkconfigurators

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/narrowspark-configurators/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[scrawler/router

An Fully Automatic RESTful PHP Router.

552.2k3](/packages/scrawler-router)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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