Find the instances of an executable in the system path, in PHP. https://docs.belin.io/which.php
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

4.3 KiB

Changelog

Version 9.1.0

  • Deprecated this package in favor of cedx/which.hx.
  • Replaced the build system based on Robo by PowerShell scripts.
  • Updated the package dependencies.

Version 9.0.0

  • Breaking change: the Finder->find() method now returns SplFileInfo instances instead of strings.
  • Updated the documentation.
  • Updated the package dependencies.

Version 8.1.0

Version 8.0.0

  • Breaking change: raised the required PHP version.
  • Breaking change: using PHP 7.4 features, like arrow functions and typed properties.

Version 7.2.0

  • Removed the dependency on Commando library.
  • Updated the package dependencies.

Version 7.1.0

  • Modified the package layout.
  • Updated the package dependencies.

Version 7.0.1

  • Fixed the issue #5: the CLI executable is not exposed by the composer.json file.
  • Replaced the Phing build system by Robo.

Version 7.0.0

  • Breaking change: implemented the Finder->find() method using generators.
  • Breaking change: removed the setters of the Finder class.
  • Added support for PHPStan static analyzer.

Version 6.2.0

Version 6.1.0

  • Added an example code.
  • Updated the package dependencies.

Version 6.0.0

  • Breaking change: raised the required PHP version.
  • Added support for phpDocumentor.
  • Updated the package dependencies.

Version 5.0.1

  • Fixed the issue #2: the which() function can return duplicates.

Version 5.0.0

  • Breaking change: raised the required PHP version.
  • Breaking change: using PHP 7.1 features, like void functions.
  • Added a user guide based on MkDocs.
  • Added the FinderException class.
  • Updated the package dependencies.

Version 4.0.0

  • Breaking change: removed the Application class.
  • Added the onError option.

Version 3.0.0

  • Breaking change: moved from Observable-based to synchronous API.
  • Changed licensing for the MIT License.

Version 2.0.0

  • Breaking change: renamed the which namespace to Which.

Version 1.1.1

  • Fixed the issue #1: the Finder->isExecutable() method did not return an Observable on Windows.

Version 1.1.0

  • Enabled the strict typing.
  • Updated the package dependencies.

Version 1.0.0

  • Breaking change: the Application->run() method does not exit() anymore.
  • Added new unit tests.

Version 0.2.0

  • Added a command line interface.

Version 0.1.0

  • Initial release.