Skip to content

drago-ex/bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');