{"id":20381258,"url":"https://github.com/drago-ex/bootstrap","last_synced_at":"2026-02-16T20:03:39.558Z","repository":{"id":56971814,"uuid":"80513104","full_name":"drago-ex/bootstrap","owner":"drago-ex","description":":rocket:The `ExtraConfigurator` class extends Nette's configuration by searching for `.neon` files across directories and caching the results, with automatic cache invalidation in development.","archived":false,"fork":false,"pushed_at":"2025-04-01T06:39:35.000Z","size":222,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-27T11:51:38.928Z","etag":null,"topics":["configuration","nette"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drago-ex.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-31T11:05:23.000Z","updated_at":"2025-06-29T22:32:59.000Z","dependencies_parsed_at":"2024-01-12T10:10:35.344Z","dependency_job_id":"f46e81e8-57b2-41ce-b199-0dacc7288241","html_url":"https://github.com/drago-ex/bootstrap","commit_stats":{"total_commits":181,"total_committers":3,"mean_commits":"60.333333333333336","dds":"0.011049723756906049","last_synced_commit":"28aebc804ccd0463252b0f4db9dab64acb8ebc5a"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/drago-ex/bootstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fbootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fbootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fbootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fbootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drago-ex","download_url":"https://codeload.github.com/drago-ex/bootstrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fbootstrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29516947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["configuration","nette"],"created_at":"2024-11-15T02:12:42.109Z","updated_at":"2026-02-16T20:03:39.550Z","avatar_url":"https://github.com/drago-ex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Drago Bootstrap\r\n`ExtraConfigurator` is a class built on top of Nette Framework's `Configurator` to simplify\r\nloading and caching of configuration files in `.neon` format. It automatically handles\r\ncaching in development and production environments.\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/bootstrap/master/license)\r\n[![PHP version](https://badge.fury.io/ph/drago-ex%2Fbootstrap.svg)](https://badge.fury.io/ph/drago-ex%2Fbootstrap)\r\n[![Tests](https://github.com/drago-ex/bootstrap/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/bootstrap/actions/workflows/tests.yml)\r\n[![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)\r\n[![CodeFactor](https://www.codefactor.io/repository/github/drago-ex/bootstrap/badge)](https://www.codefactor.io/repository/github/drago-ex/bootstrap)\r\n[![Coverage Status](https://coveralls.io/repos/github/drago-ex/bootstrap/badge.svg?branch=master)](https://coveralls.io/github/drago-ex/bootstrap?branch=master)\r\n\r\n## Requirements\r\n- PHP \u003e= 8.3\r\n- Nette Framework\r\n- Composer\r\n\r\n## Installation\r\nMake sure you have Nette Framework installed in your project.\r\n```\r\ncomposer require drago-ex/bootstrap\r\n```\r\n\r\n## Basic Usage\r\n### Adding Configuration Files\r\nTo load configuration files from a specified directory:\r\n\r\n```php\r\nuse Drago\\Bootstrap\\Drago\\Bootstrap\\ExtraConfigurator;\r\n\r\n$configurator = new ExtraConfigurator();\r\n\r\n// Add configuration files from the 'config' directory\r\n$configurator-\u003eaddFindConfig(__DIR__ . '/config');\r\n\r\n// Access the application (you can configure services, routing, etc.)\r\n$app = $configurator-\u003eapp();\r\n```\r\n\r\n## Adding Multiple Directories\r\nYou can also provide multiple directories for configuration files:\r\n```php\r\n$configurator-\u003eaddFindConfig([\r\n    __DIR__ . '/config/first',\r\n    __DIR__ . '/config/second'\r\n]);\r\n```\r\n\r\n## Excluding Files or Directories\r\nYou can exclude certain files or directories from being loaded:\r\n```php\r\n$configurator-\u003eaddFindConfig(__DIR__ . '/config', 'exclude');\r\n```\r\nThis will load all `.neon` files from the `config` directory except `exclude.neon`.\r\n\r\n## Cache Management\r\nIn development mode, the cache is invalidated after each request to allow immediate updates.\r\nIn production mode, the cache is stored without expiration unless the configuration files are modified.\r\n```php\r\nuse Tracy\\Debugger;\r\n\r\n// Enable production mode to use persistent cache\r\nDebugger::$productionMode = true;\r\n\r\n// Cache is automatically handled and invalidated only when necessary\r\n$configurator-\u003eaddFindConfig(__DIR__ . '/config');\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fbootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrago-ex%2Fbootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fbootstrap/lists"}