PHPackages                             consolidation/version-tool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. consolidation/version-tool

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

consolidation/version-tool
==========================

Template project for PHP libraries.

0.1.10(4y ago)11.2M↓22.6%11MITPHPPHP &gt;=7.1

Since Sep 30Pushed 4y agoCompare

[ Source](https://github.com/consolidation/version-tool)[ Packagist](https://packagist.org/packages/consolidation/version-tool)[ RSS](/packages/consolidation-version-tool/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (15)Used By (1)

VersionTool
===========

[](#versiontool)

The version-tool identifies the type and version of several popular projects.

[![Travis CI](https://camo.githubusercontent.com/0dccf7a828d5ad8dbaccf777cbdafb63861e0da858bef3a2e10cbace16fcc49e/68747470733a2f2f7472617669732d63692e6f72672f636f6e736f6c69646174696f6e2f76657273696f6e2d746f6f6c2e7376673f6272616e63683d6d61696e)](https://travis-ci.org/consolidation/version-tool)[![Windows CI](https://camo.githubusercontent.com/5b04376628e940a98563f9cffbb746588dbf51ef64710d102c5d7d61b897d1fc/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f2537422537425055545f4150505645594f525f5354415455535f42414447455f49445f484552452537442537443f7376673d74727565)](https://ci.appveyor.com/project/consolidation/version-tool)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5e67ac355c283de1ed1361528c922df8c96a1d724b66f0b6622215b1ab4cba71/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6e736f6c69646174696f6e2f76657273696f6e2d746f6f6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/consolidation/version-tool/?branch=main)[![Coverage Status](https://camo.githubusercontent.com/f53393dfdf527b72993bc2a1dbfd708de1e5e8c0c75b0cce1a7c8cd22a6ce93d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636f6e736f6c69646174696f6e2f76657273696f6e2d746f6f6c2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/consolidation/version-tool?branch=main)[![License](https://camo.githubusercontent.com/48ec640df7aa98ffef21cc458ad62f485e8c6afaab5ab4da8d13d84e1cd7779e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3430383637372e737667)](LICENSE)

Getting Started
---------------

[](#getting-started)

Download the latest `version-tool.phar` from the [releases](https://github.com/consolidation/version-tool/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

```

Detected frameworks:

- Drupal 8
- Drupal 7
- Drupal 6
- WordPress

Using the API
-------------

[](#using-the-api)

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();

```

Running the tests
-----------------

[](#running-the-tests)

The test suite may be run locally by way of some simple composer scripts:

TestCommandRun all tests`composer test`PHPUnit tests`composer unit`PHP linter`composer lint`Code style`composer cs`Fix style errors`composer cbf`Deployment
----------

[](#deployment)

- Edit the `VERSION` file to contain the version to release followed by "-dev", and commit the change.
- Run `composer release`

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [releases](https://github.com/consolidation/version-tool/releases) page.

Authors
-------

[](#authors)

- **Greg Anderson** - created project from template.

See also the list of [contributors](https://github.com/consolidation/version-tool/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~110 days

Recently: every ~274 days

Total

11

Last Release

1690d ago

PHP version history (4 changes)0.1.0PHP &gt;=5.5.0

0.1.2PHP &gt;=5.6.37

0.1.3PHP &gt;=5.6.33

0.1.4PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b34cc6bd882277b6c6dda19bf6631ae5c3a909fd667c826a15121642cdc051b2?d=identicon)[greg.1.anderson](/maintainers/greg.1.anderson)

---

Top Contributors

[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (40 commits)")[![kporras07](https://avatars.githubusercontent.com/u/2217820?v=4)](https://github.com/kporras07 "kporras07 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/consolidation-version-tool/health.svg)

```
[![Health](https://phpackages.com/badges/consolidation-version-tool/health.svg)](https://phpackages.com/packages/consolidation-version-tool)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
