PHPackages                             drago-ex/bootstrap - 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. drago-ex/bootstrap

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

drago-ex/bootstrap
==================

The `ExtraConfigurator` class extends Nette's configuration by searching for `.neon` files across directories and caching the results, with automatic cache invalidation in development.

v1.0.12(1y ago)12.6k1MITPHPPHP &gt;=8.3 &lt;9CI passing

Since Oct 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/drago-ex/bootstrap)[ Packagist](https://packagist.org/packages/drago-ex/bootstrap)[ RSS](/packages/drago-ex-bootstrap/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (7)Versions (11)Used By (1)

Drago Bootstrap
---------------

[](#drago-bootstrap)

`ExtraConfigurator` is a class built on top of Nette Framework's `Configurator` to simplify loading and caching of configuration files in `.neon` format. It automatically handles caching in development and production environments.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://raw.githubusercontent.com/drago-ex/bootstrap/master/license)[![PHP version](https://camo.githubusercontent.com/1f3739a04dc5254399faffed0d7bb6e02a5ad21d796aa4b923413aa1caa55807/68747470733a2f2f62616467652e667572792e696f2f70682f647261676f2d6578253246626f6f7473747261702e737667)](https://badge.fury.io/ph/drago-ex%2Fbootstrap)[![Tests](https://github.com/drago-ex/bootstrap/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/bootstrap/actions/workflows/tests.yml)[![Coding Style](https://github.com/drago-ex/bootstrap/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/bootstrap/actions/workflows/coding-style.yml)[![CodeFactor](https://camo.githubusercontent.com/538c7be60c749f0eb22187a0cceb3277d8688acb2b82c3a22203756c960ee377/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f647261676f2d65782f626f6f7473747261702f6261646765)](https://www.codefactor.io/repository/github/drago-ex/bootstrap)[![Coverage Status](https://camo.githubusercontent.com/61fbe951eb696b2772806cda3457dc24a854c6fc86bc8bc317be1c7a5996102a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f647261676f2d65782f626f6f7473747261702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/drago-ex/bootstrap?branch=master)

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

[](#requirements)

- PHP &gt;= 8.3
- Nette Framework
- Composer

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

[](#installation)

Make sure you have Nette Framework installed in your project.

```
composer require drago-ex/bootstrap

```

Basic Usage
-----------

[](#basic-usage)

### Adding Configuration Files

[](#adding-configuration-files)

To load configuration files from a specified directory:

```
use Drago\Bootstrap\Drago\Bootstrap\ExtraConfigurator;

$configurator = new ExtraConfigurator();

// Add configuration files from the 'config' directory
$configurator->addFindConfig(__DIR__ . '/config');

// Access the application (you can configure services, routing, etc.)
$app = $configurator->app();
```

Adding Multiple Directories
---------------------------

[](#adding-multiple-directories)

You can also provide multiple directories for configuration files:

```
$configurator->addFindConfig([
    __DIR__ . '/config/first',
    __DIR__ . '/config/second'
]);
```

Excluding Files or Directories
------------------------------

[](#excluding-files-or-directories)

You can exclude certain files or directories from being loaded:

```
$configurator->addFindConfig(__DIR__ . '/config', 'exclude');
```

This will load all `.neon` files from the `config` directory except `exclude.neon`.

Cache Management
----------------

[](#cache-management)

In development mode, the cache is invalidated after each request to allow immediate updates. In production mode, the cache is stored without expiration unless the configuration files are modified.

```
use Tracy\Debugger;

// Enable production mode to use persistent cache
Debugger::$productionMode = true;

// Cache is automatically handled and invalidated only when necessary
$configurator->addFindConfig(__DIR__ . '/config');
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance63

Regular maintenance activity

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 99.6% 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 ~222 days

Recently: every ~151 days

Total

10

Last Release

413d ago

PHP version history (7 changes)v1.0.0PHP &gt;=7.1

v1.0.2PHP &gt;=7.4

v1.0.4PHP &gt;=8.0

v1.0.5PHP &gt;=8.1

v1.0.6PHP &gt;=8.1 &lt;8.4

v1.0.10PHP &gt;=8.1.0 &lt;8.4.0

v1.0.11PHP &gt;=8.3 &lt;9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5998929?v=4)[Zdeněk Papučík](/maintainers/accgit)[@accgit](https://github.com/accgit)

---

Top Contributors

[![accgit](https://avatars.githubusercontent.com/u/5998929?v=4)](https://github.com/accgit "accgit (261 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

configurationnette

### Embed Badge

![Health badge](/badges/drago-ex-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/drago-ex-bootstrap/health.svg)](https://phpackages.com/packages/drago-ex-bootstrap)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)

PHPackages © 2026

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