-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
Cédric Belin edited this page Nov 5, 2024
·
6 revisions
Before installing PHP Minifier, you need to make sure you have Node.js and npm, the Node.js package manager, up and running.
You can verify if you're already good to go with the following command:
node --version
# v23.1.0
From a command prompt, run:
npm install @cedx/php-minifier
Now in your JavaScript code, you can use:
import {phpMinify} from "@cedx/php-minifier";