I want to run https://github.com/svg/svgo from PHP but have some problems with the permissons.
My Example App:
root
-- svgo.php
-- svgfiles
-- test.svg
-- node_modules
-- svgo
-- bin
--svgo
My PHP Script:
<?php
exec("node_modules/svgo/bin/svgo svgfiles/test.svg -o svgfiles/test.min.svg");
?>
When I run on the CLI "php svgo.php" is creates the test.min.svg file, but when I access "localhost/svgo.php" with my MAMP installation it does nothing. I also gave the path "svgfiles" permissons 777.