I need a new function for this script : [login to view URL]
Currently the script can minify JS and CSS.
I need a possibility to minify PHP files with the same script.
So your task is to add a class to the existing Githib Script that will minify PHP code, with all of the features of the JS minifier class.
For example it must be possible to use this like :
<code>
use MatthiasMullie\Minify;
$sourcePath = '/path/to/source/php/[login to view URL]';
$minifier = new Minify\PHP($sourcePath);
// we can even add another file, they'll then be
// joined in 1 output file
$sourcePath2 = '/path/to/second/source/php/[login to view URL]';
$minifier->add($sourcePath2);
</code>
This should be a very fast task for someone who know PHP.
I don't talk with freelancers who need to adjust their bid.
You have to work on your own (local)host. I only need the extended repository.
The extension must work with PHP 7 and without composer support.