Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drago-ex/bootstrap
:rocket: Basic configuration. (@nette)
https://github.com/drago-ex/bootstrap
configuration nette
Last synced: about 2 months ago
JSON representation
:rocket: Basic configuration. (@nette)
- Host: GitHub
- URL: https://github.com/drago-ex/bootstrap
- Owner: drago-ex
- License: mit
- Created: 2017-01-31T11:05:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T08:27:54.000Z (5 months ago)
- Last Synced: 2024-11-02T00:16:39.448Z (2 months ago)
- Topics: configuration, nette
- Language: PHP
- Homepage:
- Size: 171 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
## Drago Bootstrap
Basic configuration.[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/bootstrap/master/license.md)
[![PHP version](https://badge.fury.io/ph/drago-ex%2Fbootstrap.svg)](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://www.codefactor.io/repository/github/drago-ex/bootstrap/badge)](https://www.codefactor.io/repository/github/drago-ex/bootstrap)
[![Coverage Status](https://coveralls.io/repos/github/drago-ex/bootstrap/badge.svg?branch=master)](https://coveralls.io/github/drago-ex/bootstrap?branch=master)## Requirements
- PHP 8.1 or higher
- composer## Installation
```
composer require drago-ex/bootstrap
```## Use
```php
class Bootstrap
{
public static function boot(): ExtraConfigurator
{
$app = new ExtraConfigurator;// Finder configuration files.
$app->addFindConfig(__DIR__ . '/path/to/dir');return $app;
}
}
```Multiple search.
```php
$app->addFindConfig([
__DIR__ . '/path/to/dir',
__DIR__ . '/path/to/dir'
]);
```Search exclusion.
```php
$app->addFindConfig(__DIR__ . '/path/to/dir', 'exclude');