PHPackages                             aedart/installed-version - 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. aedart/installed-version

Abandoned → [jean85/pretty-package-versions](/?search=jean85%2Fpretty-package-versions)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

aedart/installed-version
========================

Utility that attempts to identify what version of a given package you have installed

3.1.0(8y ago)01821BSD-3-ClausePHPPHP &gt;=7.1.0

Since Sep 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aedart/installed-version)[ Packagist](https://packagist.org/packages/aedart/installed-version)[ Docs](https://github.com/aedart/installed-version)[ RSS](/packages/aedart-installed-version/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (6)Used By (1)

Deprecated - Installed Version
==============================

[](#deprecated---installed-version)

Please use [Pretty-Package-Versions](https://github.com/Jean85/pretty-package-versions) instead

[![Build Status](https://camo.githubusercontent.com/0480ab8dc06a0babe3e640cf71c44a3378e92d6f160f65b02fbd6aa31fac3f1b/68747470733a2f2f7472617669732d63692e6f72672f6165646172742f696e7374616c6c65642d76657273696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aedart/installed-version)[![Latest Stable Version](https://camo.githubusercontent.com/7c6ed8aa0fbb5ef5c7a27ba21b2bf40a4a5ecc5736b99d70dd32bde5e719b683/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f696e7374616c6c65642d76657273696f6e2f762f737461626c65)](https://packagist.org/packages/aedart/installed-version)[![Total Downloads](https://camo.githubusercontent.com/e33ddedbb1b38213b7c211dddcd53f165bb04c373e5e644421602c98641e8c7e/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f696e7374616c6c65642d76657273696f6e2f646f776e6c6f616473)](https://packagist.org/packages/aedart/installed-version)[![Latest Unstable Version](https://camo.githubusercontent.com/82d103bb5c0f4c62512f59915ecd04fb915973b644e10c4df8bd23ead649aee1/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f696e7374616c6c65642d76657273696f6e2f762f756e737461626c65)](https://packagist.org/packages/aedart/installed-version)[![License](https://camo.githubusercontent.com/c612a81b7a6896559cba4740e7b6b5ab08e1f664197d8b0d8e9ee1be0aa8b46a/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f696e7374616c6c65642d76657273696f6e2f6c6963656e7365)](https://packagist.org/packages/aedart/installed-version)

Utility that attempts to identify what version of a given package you have installed

Contents
--------

[](#contents)

- [How to install](#how-to-install)
- [Quick start](#quick-start)
- [Future versions](#future-versions)
- [Contribution](#contribution)
- [Acknowledgement](#acknowledgement)
- [Versioning](#versioning)
- [License](#license)

How to install
--------------

[](#how-to-install)

```
composer require aedart/installed-version
```

This package uses [composer](https://getcomposer.org/). If you do not know what that is or how it works, I recommend that you read a little about, before attempting to use this package.

Quick start
-----------

[](#quick-start)

```
use Aedart\Installed\Version\Reader;

$reader = new Reader();

echo $reader->getVersion('amce/rocket-computer');

// Example output 1.22.4 ... 1.0.x-dev, or Unknown if unable to find / read package version
```

The default `Reader` component attempts to fetch the version from composer's `installed.json` file, which should be found inside your local or global vendor.

If the reader does not find the desired package there, it will look for the `composer.json` file in the current workign directory. If it matches the desired package, it attempts reading the version from it (or it's [branch-alias](https://getcomposer.org/doc/articles/aliases.md)).

Lastly, if nothing was found `Unknown` is returned.

**Tip**: You should cache the version because "guessing" the version does come at some cost. Reading files, decoding them, looping through them...etc.

Future versions
---------------

[](#future-versions)

In a future version of this package, I will attempt to improve performance as well as the correctness of how to obtain the correct version number of a installed package.

If you know how to, please feel free to submit one or two pull requests.

Contribution
------------

[](#contribution)

Have you found a defect ( [bug or design flaw](https://en.wikipedia.org/wiki/Software_bug) ), or do you wish improvements? In the following sections, you might find some useful information on how you can help this project. In any case, I thank you for taking the time to help me improve this project's deliverables and overall quality.

### Bug Report

[](#bug-report)

If you are convinced that you have found a bug, then at the very least you should create a new issue. In that given issue, you should as a minimum describe the following;

- Where is the defect located
- A good, short and precise description of the defect (Why is it a defect)
- How to replicate the defect
- (*A possible solution for how to resolve the defect*)

When time permits it, I will review your issue and take action upon it.

### Fork, code and send pull-request

[](#fork-code-and-send-pull-request)

A good and well written bug report can help me a lot. Nevertheless, if you can or wish to resolve the defect by yourself, here is how you can do so;

- Fork this project
- Create a new local development branch for the given defect-fix
- Write your code / changes
- Create executable test-cases (prove that your changes are solid!)
- Commit and push your changes to your fork-repository
- Send a pull-request with your changes
- *Drink a [Beer](https://en.wikipedia.org/wiki/Beer) - you earned it* :)

As soon as I receive the pull-request (*and have time for it*), I will review your changes and merge them into this project. If not, I will inform you why I choose not to.

Acknowledgement
---------------

[](#acknowledgement)

- [Nils Adermann &amp; Jordi Boggiano](https://getcomposer.org/), best thing that happened for the PHP community

Versioning
----------

[](#versioning)

This package follows [Semantic Versioning 2.0.0](http://semver.org/)

License
-------

[](#license)

[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~134 days

Total

5

Last Release

3041d ago

Major Versions

1.1.0 → 2.0.02017-01-28

2.0.0 → 3.0.02017-10-15

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

3.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1523223?v=4)[Alin Eugen Deac](/maintainers/aedart)[@aedart](https://github.com/aedart)

---

Top Contributors

[![aedart](https://avatars.githubusercontent.com/u/1523223?v=4)](https://github.com/aedart "aedart (32 commits)")

---

Tags

composerpackageversion

### Embed Badge

![Health badge](/badges/aedart-installed-version/health.svg)

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

###  Alternatives

[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k306.6M74](/packages/jean85-pretty-package-versions)[composer/satis

Simple Repository Generator

3.3k1.4M19](/packages/composer-satis)[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8884.8M41](/packages/fxp-composer-asset-plugin)[consolidation/cgr

Safer alternative to 'composer global require'.

449214.5k](/packages/consolidation-cgr)[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177289.8k26](/packages/foxy-foxy)[netojose/laravel-bootstrap-4-forms

Bootstrap 4 form builder for Laravel 5

180119.8k](/packages/netojose-laravel-bootstrap-4-forms)

PHPackages © 2026

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