Skip to content

PHP Minifier

Minify PHP source code by removing comments and whitespace.
This package allows you to apply the php_strip_whitespace() function to compress the code, either using the command line or through a Gulp plugin.

Quick start

Install the latest version of PHP Minifier with npm package manager:

npm install @cedx/php-minifier

For detailed instructions, see the installation guide.

Usage