alex-kalanis / kw_afterload
Autoloading configurations by separate files
Requires
- php: >=7.4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: >=7.2 <=9
- shipmonk/composer-dependency-analyser: ^1.4
This package is auto-updated.
Last update: 2024-12-01 00:09:02 UTC
README
Personal loader for KWCMS. But this is no autoloader - that is separate package. This one is for setting steps after start - as part of bootstrap. So you have many smaller config files instead of one huge bootstrap. And they are loaded more dynamically. You can set order of loaded configs or disable them completely.
Installation
composer.phar require alex-kalanis/kw_afterload
Copy whole project into your vendor dir under author named dir and copy things from
example/_bootstrap.php
to your bootstrap. Nothing more is need.
Manage
For simplify management there is a whole class which allows manipulation with configs. Just say config's name and what to do with it. Just creation is done as disabled, not enabled.
Tests
Uses PhpUnit tests. Download Phpunit.phar, save it to the root, make it executable and run.