Download the PHP package fpvcode/shrinkwrap without Composer
On this page you can find all versions of the php package fpvcode/shrinkwrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fpvcode/shrinkwrap
More information about fpvcode/shrinkwrap
Files in fpvcode/shrinkwrap
Package shrinkwrap
Short Description All-in-one HTML/JS/CSS code minifier.
License MIT
Homepage https://github.com/fpvcode/shrinkwrap
Informations about the package shrinkwrap
UKRAINE NEEDS YOUR HELP NOW!
On 24 February 2022, Russian President Vladimir Putin ordered an invasion of Ukraine by Russian Armed Forces.
Your support is urgently needed.
- Donate to the volunteers. Here is the volunteer fund helping the Ukrainian army to provide all the necessary equipment: https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi or https://savelife.in.ua/en/donate/
- Triple-check social media sources. Russian disinformation is attempting to coverup and distort the reality in Ukraine.
- Help Ukrainian refugees who are fleeing Russian attacks and shellings: https://www.globalcitizen.org/en/content/ways-to-help-ukraine-conflict/
- Put pressure on your political representatives to provide help to Ukraine.
- Believe in the Ukrainian people, they will not surrender, they don't have another Ukraine.
THANK YOU!
ShrinkWrap
Description
ShrinkWrap it's a wrapper for PHP minifiers of HTML/JS/CSS code. The main purpose of creating this wheel is the desire to have a more or less flexible tool for minifying ready-made HTML pages created by 3rd-party applications. Simply put - we submit an HTML page at the input, and at the output we have a page in which (optional):
- HTML, inline JS-scripts and CSS-styles are minified.
- JS and CSS files referenced by the page (except external ones) are minified (can also be combined) and cached, and the corresponding links are changed to point to the cache.
At the moment, ShrinkWrap uses the following tools:
- HTML DOM parser:
- Minifiers:
- HTML:
- JS:
- CSS:
Requirments
PHP >= 7.3.0
Installation
Use composer
: composer require fpvcode/shrinkwrap
.
Due to dependency requirements the package loaded by default requires PHP version 8.1.0
. To download the package compatible with PHP 7.3.0
, create a composer.json
file with the following content:
Usage
Minified output:
Thanks
- Thanks to Lars Moelleken for HtmlMin - HTML Compressor and Minifier for PHP.
- Thanks to Matthias Mullie for Minify - CSS and JavaScript minifier.
- Thanks to Masterminds for HTML5-PHP - An HTML5 parser and serializer for PHP.
- Thanks to Microsoft for Visual Studio Code and GitHub.
All versions of shrinkwrap with dependencies
voku/html-min Version ^4.5
matthiasmullie/minify Version ^1.3
masterminds/html5 Version ^2.8