Download the PHP package consolidation/version-tool without Composer
On this page you can find all versions of the php package consolidation/version-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download consolidation/version-tool
More information about consolidation/version-tool
Files in consolidation/version-tool
Package version-tool
Short Description Template project for PHP libraries.
License MIT
Informations about the package version-tool
VersionTool
The version-tool identifies the type and version of several popular projects.
Getting Started
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:
Detected frameworks:
- Drupal 8
- Drupal 7
- Drupal 6
- WordPress
Using the API
The Version Tool may also be included in another project as a library.
Then, call as follows:
Running the tests
The test suite may be run locally by way of some simple composer scripts:
Test | Command |
---|---|
Run all tests | composer test |
PHPUnit tests | composer unit |
PHP linter | composer lint |
Code style | composer cs |
Fix style errors | composer cbf |
Deployment
- Edit the
VERSION
file to contain the version to release followed by "-dev", and commit the change. - Run
composer release
Contributing
Please read CONTRIBUTING.md for details on the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the releases page.
Authors
- Greg Anderson - created project from template.
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details