mrclay/minify
Minify is a PHP app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers
4.0.2
19M downloads/mo
#1381 most downloaded on Packagist
mrclay/minify
What this package is like to depend on
Last release 6 months ago
14 Feb 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Most releases are documented
notes for 22 of 25 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
25 releases · first in 2013
1 release in the last 12 months
see the full history below
Release timeline
25 releases · Jul 2013 to Feb 2026Releases
latest 25-
4.0.214 Feb 2026Release notes
Open source →- Add scssphp 2.x compatibility while maintaining backward compatibility, #715
- Use
CompilationResult::getIncludedFiles()for scssphp 2.x, fall back toCompiler::getParsedFiles()for scssphp 1.x
-
4.0.103 Feb 2025Release notes
Open source →What's Changed
- Recommend against use by @mrclay in #711
- Fix htmlspecialchars incompatibility with php 8.1, #693
- Add support for php 8.4 by @thirsch in #714
New Contributors
Full Changelog: 4.0.0...4.0.1
-
4.0.004 Jan 2024Release notes
Open source →What's Changed
- Support only PHP 8.1+
- Update PHPUnit to 8.x
- Replace
leafo/scssphpwithscssphp/scssphp
Full Changelog: 3.0.14...4.0.0
Release notes
Open source →- Support PHP 8.1+
- Update PHPUnit to 8.x
- Replace
leafo/scssphpwithscssphp/scssphp
-
3.0.1405 May 2023 -
3.0.1302 Oct 2022 -
3.0.1214 May 2022Release notes
Open source → -
3.0.1111 Mar 2021 -
3.0.1002 Apr 2020 -
3.0.924 Mar 2020 -
3.0.819 Mar 2020Release notes
Open source →- Removed deprecated get_magic_quotes_gpc() function that since PHP 5.4.0 returns FALSE always, and since PHP 7.4 is deprecated, #661
-
3.0.710 Dec 2019 -
3.0.628 Oct 2019 -
3.0.501 Oct 2019 -
3.0.303 Nov 2017 -
3.0.214 Sep 2017 -
3.0.108 Jun 2017 -
3.0.003 Apr 2017Release notes
Open source →- Improved CSS minification via Túbal Martín's CSSMin
- Easier error identification (just see error_log)
- Adds feature to serve static files directly
- Adds config option for simply concatenating files
- Adds config option for altering creation of Minify/MinApp objects
- Missing spec no longer redirects, instead links to docs
- Installation requires use of Composer to install dependencies
- Minify::VERSION is an int that tracks the major version number
- BREAKING: The project root is now what gets deployed as
min - BREAKING: Removes JSMin
- BREAKING: Removes JSMin+ (unmaintained, high memory usage)
- BREAKING: Removes DooDigestAuth
- BREAKING: Removes Minify_Loader (uses Composer)
- BREAKING: Removes Minify_Logger (uses Monolog)
- BREAKING: Removes
$min_libPathoption - BREAKING: The Minify, source, and controller components have changed APIs
-
2.3.303 Nov 2017Nothing published for this version
-
2.3.208 Jun 2017Nothing published for this version
-
2.3.103 Apr 2017Nothing published for this version
-
2.3.008 Mar 2016Release notes
Open source →- Adds
$min_concatOnlyoption to just concatenate files - Deprecates use of Minify_Loader
- Deprecates use of Minify_Logger
- Deprecates use of JSMinPlus
- Deprecates use of FirePHP
- Deprecates use of DooDigestAuth
- Adds
-
2.2.130 Oct 2014Release notes
Open source →- Builder styled with Bootstrap (thanks to help from acidvertigo)
- Update CSSmin to v.2.4.8
- Added WinCache
- URLs with spaces properly rewritten
-
2.2.012 Mar 2014Release notes
Open source →- Fix handling of RegEx in certain situations in JSMin
- Thanks to Vovan-VE for reporting this
- Update composer.json with support info
- Add ability to set ClosureCompiler URL
- Thanks Elan Ruusamäe for the pull request
- Better report of temp directory errors
- Also thanks to Elan Ruusamäe for anatoher pull request
- Updated CSSmin and added Minify_CSSmin wrapper
- Fix windows issue associated with long cache filenames
- Fix issue with web-based tool
- Fix bug in JSMin exceptions
- Fix "about:blank" bug in CSS_UriRewriter
- Cite is no longer a block element in HTML minification
- Allow for definition of custom config locations outside of the min directory
- Thanks Sam Bauers for the pull request
- Allow option for overriding the maximum byte size POST limit for ClosureCompiler and other additions
- Thanks Joscha Feth for the code
- Fixes to file-relative URL identification in UriRewriter
- Allow far-future expiration and file versioning with the "v" querystirng parameter in addition to existing method
- Lots of general code tidy ups
- Fix handling of RegEx in certain situations in JSMin
-
2.1.723 Jul 2013Release notes
Open source →- Fixes arbitrary file inclusion vulnerability on some systems
- Thanks to Matt Mecham for reporting this
- Fixes arbitrary file inclusion vulnerability on some systems
-
2.1.620 Jul 2013Release notes
Open source →- JSMin fixes
- Prevents some Closure Compiler API failures
- Uses autoloading for all class loading
- Multiple group support in HTML Helper
- Cache adaptor for XCache
- Allow setting stack-size in YUI Compressor wrapper
- Adds jsCleanComments option to HTML minifier
- Upgrades CSSmin
- CLI script more portable
- Adds composer.json