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.

v2.0.1(1w ago)13.0k1MITPHPPHP &gt;=8.3 &lt;9CI passing

Since Oct 9Pushed 6d 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 4d ago

READMEChangelog (10)Dependencies (13)Versions (13)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://github.com/drago-ex/bootstrap/blob/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)

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

```

Examples
--------

[](#examples)

### Adding Configuration Files

[](#adding-configuration-files)

To load configuration files from a specified directory:

```
use 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

58

—

FairBetter than 98% of packages

Maintenance99

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 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 ~128 days

Total

12

Last Release

13d ago

Major Versions

v1.0.12 → v2.0.02026-05-22

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 (277 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/code-checker

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

911.7M6](/packages/nette-code-checker)[nette/web-project

Nette: Standard Web Project

10993.3k](/packages/nette-web-project)

PHPackages © 2026

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