Skip to content

webdevlabs/webphpack

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

WebPHPack

WebPHPack is a simple php alternative to webpack for automatic concatenation of multiple JavaScript and CSS files into single files.

This library replaces the style/script tags from the input html source code and returns plain html code ready for output. Loading is done asynchronously for both javascript/css.

Added HTTP2 Push support.

Usage

$webphpack = new WebPHPack($htmlsource);
$webphpack->caching = true;
$webphpack->httpush = true;
$webphpack->combineJS();
$webphpack->combineCSS();
$webphpack->output();

or nested

$webphpack = new WebPHPack($htmlsource);
$newHTMLsource = $webphpack->combineJS()->combineCSS()->output();

About

WebPHPack is a simple php alternative to webpack for auto combining multiple JS and CSS files into single files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published