ocramius/package-versions
Provides efficient querying for installed package versions (no runtime IO)
2.12.0
76M downloads/mo
#1048 most downloaded on Packagist
Ocramius/PackageVersions
What this package is like to depend on
Last release 3 months ago
21 May 2026
Ships fairly regularly
a new release about every 6 months
Some releases are documented
notes for 21 of 43 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
43 releases · first in 2016
2 releases in the last 12 months
see the full history below
Release timeline
43 releases · Jan 2016 to May 2026Releases
latest 43-
2.12.021 May 2026Release notes
Open source →2.12.0 - 2026-05-21
Release Notes for 2.12.0
Feature release (minor)
2.12.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 1
dependencies,enhancement,renovate
- 275: Update dependency phpunit/phpunit to v13, dropped PHP 8.2, 8.3 support, upgraded dependencies thanks to @renovate[bot]
- 272: Update all non-major dependencies thanks to @renovate[bot]
renovate
- 271: Update actions/checkout action to v6 thanks to @renovate[bot]
Release notes
Open source →
Release Notes for 2.12.0
Feature release (minor)
2.12.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 1
dependencies,enhancement,renovate
- 275: Update dependency phpunit/phpunit to v13, dropped PHP 8.2, 8.3 support, upgraded dependencies thanks to @renovate[bot]
- 272: Update all non-major dependencies thanks to @renovate[bot]
renovate
- 271: Update actions/checkout action to v6 thanks to @renovate[bot]
-
2.11.027 Nov 2025Release notes
Open source →2.11.0 - 2025-11-27
Release Notes for 2.11.0
Feature release (minor)
2.11.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
dependencies,enhancement
- 270: Add PHP 8.5 support thanks to @samsonasik
renovate
- 269: Update dependency doctrine/coding-standard to v14 thanks to @renovate[bot]
- 268: Update actions/checkout action to v5 thanks to @renovate[bot]
- 266: Update dependency doctrine/coding-standard to v13 thanks to @renovate[bot]
Release notes
Open source →
Release Notes for 2.11.0
Feature release (minor)
2.11.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
dependencies,enhancement
- 270: Add PHP 8.5 support thanks to @samsonasik
renovate
- 269: Update dependency doctrine/coding-standard to v14 thanks to @renovate[bot]
- 268: Update actions/checkout action to v5 thanks to @renovate[bot]
- 266: Update dependency doctrine/coding-standard to v13 thanks to @renovate[bot]
-
2.10.005 Feb 2025Release notes
Open source →2.10.0 - 2025-02-05
Release Notes for 2.10.0
Feature release (minor)
2.10.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 1
renovate
- 261: Update dependency vimeo/psalm to v6 thanks to @renovate[bot]
- 257: Roll back laminas/automatic-releases action to 1.24.0 - autoclosed thanks to @renovate[bot]
- 252: Update dependency phpunit/phpunit to v11 thanks to @renovate[bot]
- 246: Update dependency phpunit/phpunit to v10 - abandoned thanks to @renovate[bot]
Release notes
Open source →
Release Notes for 2.10.0
Feature release (minor)
2.10.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 1
renovate
- 261: Update dependency vimeo/psalm to v6 thanks to @renovate[bot]
- 257: Roll back laminas/automatic-releases action to 1.24.0 - autoclosed thanks to @renovate[bot]
- 252: Update dependency phpunit/phpunit to v11 thanks to @renovate[bot]
- 246: Update dependency phpunit/phpunit to v10 - abandoned thanks to @renovate[bot]
-
2.9.004 Aug 2024Release notes
Open source →2.9.0 - 2024-08-04
Release Notes for 2.9.0
Feature release (minor)
2.9.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
dependencies,enhancement
- 256: Allow PHP 8.4 thanks to @fezfez
security
Release notes
Open source →
Release Notes for 2.9.0
Feature release (minor)
2.9.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
dependencies,enhancement
- 256: Allow PHP 8.4 thanks to @fezfez
security
- 253: Update dependency composer/composer to ^2.7.0 [SECURITY] thanks to @renovate[bot]
-
2.8.015 Sep 2023Release notes
Open source →2.8.0 - 2023-09-15
Release Notes for 2.8.0
Feature release (minor)
2.8.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
enhancement
- 250: Allow php 8.3 thanks to @fezfez
renovate
- 249: Update actions/checkout action to v4 thanks to @renovate[bot]
- 245: Update dependency doctrine/coding-standard to v11 thanks to @renovate[bot]
- 244: Update dependency vimeo/psalm to v5 thanks to @renovate[bot]
Release notes
Open source →
Release Notes for 2.8.0
Feature release (minor)
2.8.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
enhancement
- 250: Allow php 8.3 thanks to @fezfez
renovate
- 249: Update actions/checkout action to v4 thanks to @renovate[bot]
- 245: Update dependency doctrine/coding-standard to v11 thanks to @renovate[bot]
- 244: Update dependency vimeo/psalm to v5 thanks to @renovate[bot]
-
2.7.031 Oct 2022Release notes
Open source →2.7.0 - 2022-10-31
Release Notes for 2.7.0
Feature release (minor)
2.7.0
- Total issues resolved: 0
- Total pull requests resolved: 6
- Total contributors: 2
dependencies
renovate
- 242: Update all non-major dependencies, dropping PHP 8.0 support thanks to @renovate[bot]
- 240: Update dependency doctrine/coding-standard to v10 thanks to @renovate[bot]
- 238: Configure Renovate thanks to @renovate[bot]
security
- 239: Update dependency composer/composer to ^2.2.12 [SECURITY] - autoclosed thanks to @renovate[bot]
enhancement
Release notes
Open source →
Release Notes for 2.7.0
Feature release (minor)
2.7.0
- Total issues resolved: 0
- Total pull requests resolved: 6
- Total contributors: 2
dependencies
- 243: Update dependency composer/composer to ^2.4.4 thanks to @Ocramius
renovate
- 242: Update all non-major dependencies, dropping PHP 8.0 support thanks to @renovate[bot]
- 240: Update dependency doctrine/coding-standard to v10 thanks to @renovate[bot]
- 238: Configure Renovate thanks to @renovate[bot]
security
- 239: Update dependency composer/composer to ^2.2.12 [SECURITY] - autoclosed thanks to @renovate[bot]
enhancement
- 233: Streamlined CI setup with
laminas/laminas-ci-matrix-actionthanks to @Ocramius
-
2.6.010 Oct 2022Release notes
Open source →Release Notes for 2.6.0
Feature release (minor)
2.6.0
- Total issues resolved: 0
- Total pull requests resolved: 11
- Total contributors: 3
dependencies,enhancement
- 232: PHP 8.2 support thanks to @Ocramius
- 193: Upgraded all existing dependencies to their possible latest and greatest thanks to @Ocramius
dependencies,github_actions
- 218: Bump ridedott/merge-me-action from 2.10.14 to 2.10.15 thanks to @dependabot[bot]
- 217: Bump ridedott/merge-me-action from 2.10.13 to 2.10.14 thanks to @dependabot[bot]
- 215: Bump ridedott/merge-me-action from 2.10.6 to 2.10.12 thanks to @dependabot[bot]
- 210: Bump ridedott/merge-me-action from 2.10.5 to 2.10.6 thanks to @dependabot[bot]
- 209: Bump ridedott/merge-me-action from 2.10.4 to 2.10.5 thanks to @dependabot[bot]
- 208: Bump ridedott/merge-me-action from 2.9.60 to 2.10.4 thanks to @dependabot[bot]
- 203: Bump actions/cache from 2 to 3 thanks to @dependabot[bot]
- 195: Bump actions/checkout from 2 to 3 thanks to @dependabot[bot]
enhancement
- 202: Merge release 2.5.1 into 2.6.x thanks to @github-actions[bot]
-
2.5.105 Mar 2022Release notes
Open source →Release Notes for 2.5.1
2.5.x bugfix release (patch)
2.5.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
enhancement,help wanted
- 201: Raise awareness of current Russia-Ukraine situation, targeting Russian 🇷🇺 readers thanks to @github-actions[bot]
-
2.5.022 Dec 2021Nothing published for this version
-
2.4.105 Mar 2022Release notes
Open source →Release Notes for 2.4.1
2.4.x bugfix release (patch)
2.4.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
enhancement,help wanted
- 200: Raise awareness of current Russia-Ukraine situation, targeting Russian 🇷🇺 readers thanks to @github-actions[bot]
-
2.4.019 Sep 2021Nothing published for this version
-
2.3.105 Mar 2022Release notes
Open source →2.3.1 - 2022-03-05
Release Notes for 2.3.1
2.3.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
enhancement,help wanted
- 199: Raise awareness of current Russia-Ukraine situation, targeting Russian 🇷🇺 readers thanks to @github-actions[bot]
-
2.3.023 Dec 2020Release notes
Open source →
Release Notes for 2.3.0
2.3.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
enhancement
- 164: Update
.gitattributesto avoid exporting phpcs artifacts thanks to @reedy
-
2.2.105 Mar 2022Nothing published for this version
-
2.2.021 Oct 2020Nothing published for this version
-
2.1.105 Mar 2022Nothing published for this version
-
2.1.021 Oct 2020Nothing published for this version
-
2.0.105 Mar 2022Nothing published for this version
-
2.0.021 Aug 2020Release notes
Open source →This release turns the package into a library (previously, it was a composer plugin).
Relevant change is that the
PackageVersions\Versions::ROOT_PACKAGE_NAMEconstant no longer exists: please usePackageVersions\Versions::rootPackageName()instead.This slims down the complexity of the package massively, and removes multiple known bugs.
Total issues resolved: 5
- 107: Unable to install on vboxfs thanks to @alexgit2k
- 138:
src/Packages/Versions.phpchanges detected incomposer installthanks to @Taluu - 142: Option to ignore version of rootPackage thanks to @qurben
- 152: Ocramius/PackageVersions is not compatible with composer configuration "lock: false" thanks to @windaishi
- 155: BC break: removed deprecated
PackageVersions\Versions::ROOT_PACKAGE_NAMEconstant thanks to @Ocramius
-
1.11.021 Aug 2020Nothing published for this version
-
1.10.218 Aug 2020Nothing published for this version
-
1.10.118 Aug 2020Release notes
Open source →Introduced release automation tooling, which should also help us with keeping the changelog up-to-date long-term.
-
1.10.011 Jul 2020Nothing published for this version
-
1.9.022 Jun 2020Nothing published for this version
-
1.8.006 Apr 2020Nothing published for this version
-
1.7.006 Mar 2020Nothing published for this version
-
1.6.005 Mar 2020Nothing published for this version
-
1.5.117 Jul 2019Nothing published for this version
-
1.5.017 Jul 2019Nothing published for this version
-
1.4.215 Nov 2019Nothing published for this version
-
1.4.114 Nov 2019Nothing published for this version
-
1.4.021 Feb 2019Nothing published for this version
-
1.3.005 Feb 2018Nothing published for this version
-
1.2.024 Nov 2017Nothing published for this version
-
1.1.306 Sep 2017Release notes
Open source →This release fixes a bug that caused PackageVersions to prevent the
composer removeandcomposer updatecommands to fail when this package is removed.In addition to that, mutation testing has been added to the suite, ensuring that the package is accurately and extensively tested.
Total issues resolved: 3
- 40: Mutation testing, PHP 7.1 testing thanks to @Ocramius
- 41: Removing this package on install results in file access error thanks to @Xerkus
- 46: #41 Avoid issues when the package is scheduled for removal thanks to @Jean85
-
1.1.230 Dec 2016Release notes
Open source →This release fixes a bug that caused PackageVersions to be enabled even when it was part of a globally installed package.
Total issues resolved: 3
-
1.1.125 Jul 2016Release notes
Open source →This release removes the
"files"directive fromcomposer.json, as it is no longer needed forcomposer install --classmap-authoritative. Also, that directive was causing issues with HHVM installations, since PackageVersions is not compatible with it.Total issues resolved: 1
-
1.1.022 Jul 2016Release notes
Open source →This release introduces support for running
composer install --classmap-authoritativeandcomposer install --no-scripts. Please note that performance while using these modes may be degraded, but the package will still work.Additionally, the package was tuned to prevent the plugin from running twice at installation.
Total issues resolved: 10
- 18: Fails when using composer install --no-scripts
- 20: CS (spacing)
- 22: Document the way the require-dev section is treated
- 23: Underline that composer.lock is used as source of information
- 27: Fix incompatibility with --classmap-authoritative
- 29: mention optimize-autoloader composer.json config option in README
- 30: The version class is generated twice during composer update
- 31: Remove double registration of the event listeners
- 32: Update the usage of mock APIs to use the new API
- 33: Fix for #18 - support running with --no-scripts flag
-
1.0.423 Apr 2016Release notes
Open source →This release includes a fix/workaround for composer/composer#5237, which causes
ocramius/package-versionsto sometimes generate aVersionsclass with malformed name (something likeVersions_composer_tmp0) when runningcomposer require <package-name>.Total issues resolved: 2
-
1.0.326 Feb 2016Release notes
Open source →This release fixes an issue related to concurrent autoloader re-generation caused by multiple composer plugins being installed. The issue was solved by removing autoloader re-generation from this package, but it may still affect other packages.
It is now recommended that you run
composer dump-autoload --optimizeafter installation when using this particular package. Please note thatcomposer (install|update) -ois not sufficient to avoid autoload overhead when using this particular package.Total issues resolved: 1
-
1.0.224 Feb 2016Release notes
Open source →This release fixes issues related to installing the component without any dev dependencies or with packages that don't have a source or dist reference, which is usual with packages defined directly in the
composer.json.Total issues resolved: 3
-
1.0.102 Feb 2016Release notes
Open source →This release fixes an issue related with composer updates to already installed versions. Using
composer requirewithin a package that already usedocramius/package-versionscaused the installation to be unable to write thePackageVersions\Versionsclass to a file.Total issues resolved: 6
- 2: remove unused use statement
- 3: Remove useless files from dist package
- 5: failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly
- 6: Fix/#5 use composer vendor dir
- 7: Hotfix - #5 generate package versions also when in phar context
- 8: Versions class should be ignored by VCS, as it is an install-time artifact
-
1.0.025 Jan 2016Nothing published for this version