If you are on windows and has Cygwin, You can execute all your Cygwin binaries using shell_exec() as follows:
php.net