You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
php-pngquant can be used either with or without Composer.
25
+
24
26
## With Composer
27
+
28
+
The preferred way to use php-pngquant is with Composer. Execute the following command to install this package as a dependency in your project:
29
+
25
30
```batch
26
31
composer require ourcodeworld/php-pngquant
27
32
```
33
+
28
34
## Without Composer
29
35
30
36
If you don't use composer, you can still use the wrapper. Download the [PNGQuant.php](https://github.com/ourcodeworld/php-pngquant/blob/master/src/PNGQuant.php) class from the repository and then use `require_once` to import it in your code:
@@ -36,13 +42,7 @@ require_once("PNGQuant.php");
36
42
37
43
$instance = new PNGQuant();
38
44
39
-
// Change the path to the binary of pngquant, for example in windows would be (with an example path):
0 commit comments