alex-kalanis / kw_styles
Styles storage in KWCMS
v3.0.0
2024-04-09 00:07 UTC
Requires
- php: >=7.4.0
- alex-kalanis/kw_paths: >=4.0 <5
- alex-kalanis/kw_routed_paths: >=3.0 <4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: >=8.0 <=9
- shipmonk/composer-dependency-analyser: ^1.4
This package is auto-updated.
Last update: 2024-11-09 01:28:07 UTC
README
Store styles for simplified render after everything has been prepared.
PHP Installation
composer.phar require alex-kalanis/kw_styles
(Refer to Composer Documentation if you are not familiar with composer)
PHP Usage
1.) Use your autoloader (if not already done via Composer autoloader). Use example as reference.
2.) Initialize styles by calling "\kalanis\kw_styles\Styles::init()" in bootstrap
3.) Create render which uses "\kalanis\kw_styles\Styles::getAll()".
4.) Call "\kalanis\kw_styles\Styles::want()" in your controllers.
5.) Just run your site.