Template project for PHP libraries.
The version-tool identifies the type and version of several popular projects.
Download the latest
version-tool.phar from the releases page. Run
chmod +x version-tool.phar, rename to
version-tool, and move to some directory in your $PATH (e.g. /usr/local/bin).
version-tool will tell you what program and what version exists in the current working directory:
$ version-tool info program: Drupal version: 8.6.1
- Drupal 8
- Drupal 7
- Drupal 6
The Version Tool may also be included in another project as a library.
$ composer require consolidation/version-tool
Then, call as follows:
$version_info = new VersionTool(); $info = $version_info->info($path); $app = $info->application(); $version = $info->version();
The test suite may be run locally by way of some simple composer scripts:
|Run all tests||
|Fix style errors||
- Edit the
VERSIONfile to contain the version to release followed by "-dev", and commit the change.
Please read CONTRIBUTING.md for details on the process for submitting pull requests to us.
- Greg Anderson - created project from template.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details