drago-ex / bootstrap
Basic configuration for Nette Framework
Installs: 1 997
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=8.1 <8.4
- nette/application: ^3.1
- nette/bootstrap: ^3.2
- nette/caching: ^3.2
- nette/utils: ^4.0
Requires (Dev)
- nette/tester: ^2.5
- phpstan/phpstan-nette: ^1.2.9
- tracy/tracy: ^2.10
README
Basic configuration.
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');