alex-kalanis/kw_scripts

Scripts storage in KWCMS

v3.0.1 2024-04-08 23:39 UTC

This package is auto-updated.

Last update: 2024-04-08 23:43:41 UTC


README

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

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.