Skip to content
Cédric Belin edited this page Jan 31, 2025 · 13 revisions

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

See also

Clone this wiki locally