alex-kalanis/kw_afterload

Autoloading configurations by separate files

v2.0.0 2024-03-31 01:10 UTC

This package is auto-updated.

Last update: 2024-03-31 01:21:41 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

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.