Skip to content

simple-php/assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-php/assets

Small asset manager for PHP

Usage:

Use add static method to include assets you need

use SimplePHP\Assets;
...
Assets::('bootstrap');    // include asset library, defined in Assets::$libs
Assets::add('css/main.css'); // include single css file
Assets::add('js/script.js'); // include single js file
// or all at once:
Assets::add([
 'bootstrap',
 'css/main.js',
 'js/script.js'
]);

Output js and css tags in template

Assets::getCss(); // put this inside <head> ... </head> to output styles tags
Assets::getJs(); // put this in the end of page before </body> to output js script tags

About

Simple assets manager in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages