Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.48 KB

readme.md

File metadata and controls

46 lines (38 loc) · 1.48 KB

Drago Bootstrap

Basic configuration.

License: MIT PHP version Tests Coding Style CodeFactor Coverage Status

Requirements

  • PHP 8.1 or higher
  • composer

Installation

composer require drago-ex/bootstrap

Use

class Bootstrap
{
	public static function boot(): ExtraConfigurator
	{
		$app = new ExtraConfigurator;

		// Finder configuration files.
		$app->addFindConfig(__DIR__ . '/path/to/dir');

		return $app;
	}
}

Multiple search.

$app->addFindConfig([
	__DIR__ . '/path/to/dir',
	__DIR__ . '/path/to/dir'
]);

Search exclusion.

$app->addFindConfig(__DIR__ . '/path/to/dir', 'exclude');