alex-kalanis / kw_scripts
Scripts storage in KWCMS
v3.0.1
2024-04-08 23:39 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
- psr/container: =2.0.2
- shipmonk/composer-dependency-analyser: ^1.4
Suggests
- alex-kalanis/kw_mime: Mime types for KWCMS
- alex-kalanis/kw_template: Templates for KWCMS
README
Store scripts for simplified render after everything has been prepared.
PHP Installation
composer.phar require alex-kalanis/kw_scripts
(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_scripts\Scripts::init()" in bootstrap
3.) Create render which uses "\kalanis\kw_scripts\Scripts::getAll()".
4.) Call "\kalanis\kw_scripts\Scripts::want()" in your controllers.
5.) Just run your site.