Skip to content
Cédric Belin edited this page Jul 29, 2025 · 17 revisions

Minify PHP source code by removing comments and whitespace.
Based on the php_strip_whitespace() function.

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