https://github.com/hexydec/minify-compare
A script to compare PHP minfiers on speed and compression.
https://github.com/hexydec/minify-compare
Last synced: 22 days ago
JSON representation
A script to compare PHP minfiers on speed and compression.
- Host: GitHub
- URL: https://github.com/hexydec/minify-compare
- Owner: hexydec
- License: mit
- Created: 2021-06-03T23:29:29.000Z (about 5 years ago)
- Default Branch: Main
- Last Pushed: 2024-09-30T19:22:30.000Z (almost 2 years ago)
- Last Synced: 2025-11-18T09:06:49.231Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 792 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Minify Compare
A program to compare PHP minifiers.
## Description
To use this software, you must input an array of callbacks that can accept source code, they should return the minified code. You also specify a number of URLs to test the minfiers against, or a URL to scrape links from. The program will then minify each URL with each minifier and output the results in a table. It will note:
- Input Size
- Input Size (Gzipped)
- Input Validation Errors (If a validator was specified)
- Time Taken
- Output Size
- Diff Bytes
- Compression Ratio
- Output Size (gzipped)
- Diff Bytes (gzipped)
- Compression Ratio (gzipped)
- Output Validation Errors (If a validator was specified)
You can also see the output source code of each minifier. The input and validation results can also be cached, but if the validator is connected to an external service, the first run will be slower, especially if the service is rate limited.
## Runners
In the runners folder there are some scripts to setup some HTML, CSS, and Javascript minifiers, these are included using composer.
## Installation
Clone this repository and then run:
```
$ composer install
```