Which for PHP
Find the instances of an executable in the system path, in PHP.
Quick start
Install the latest version of Which for PHP with Composer package manager:
composer require cedx/which
For detailed instructions, see the installation guide.