webphpack
v1.2.4
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.
$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();