Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Package Versions Laravel Package

ocramius/package-versions

Fast, zero‑I/O access to Composer dependency versions at runtime. Reads version data compiled from composer.lock during install/update, so calls are cheap. Use PackageVersions\Versions::getVersion('vendor/package') to embed or log exact versions.

View on GitHub
Deep Wiki
Context7
2.11.0

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

renovate

2.10.0

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

2.9.0

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

security

2.8.0

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

renovate

2.7.0

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

security

enhancement

2.5.1

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

2.4.1

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

2.3.1

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

2.2.1

Release Notes for 2.2.1

2.2.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement,help wanted

2.1.1

Release Notes for 2.1.1

2.1.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement,help wanted

2.0.1

Release Notes for 2.0.1

2.0.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement

2.4.0

2.4.0 - 2021-09-19


Release Notes for 2.4.0

2.4.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

enhancement

dependencies

2.3.0

2.3.0 - 2020-12-23


Release Notes for 2.3.0

2.3.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement

2.2.0

Release Notes for 2.2.0

This release is mostly a cleanup to keep the test setup and CI pipelines small in size and manageable long-term, since maintaining both PHP 7 and PHP 8 support would (due to dependencies) become quite a lot of long-term effort otherwise.

If, for some reason, you require to run both PHP 7 and PHP 8 in different environments, use ocramius/package-versions:2.1.0, which supports both.

2.2.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement

2.1.0

Release Notes for 2.1.0

This patch explicitly adds php:~8.0.0 support along with php:^7.4.7.

phpunit/phpunit had to also be upgraded, so that it does not contain symbols that clash with the php:8.0.0 parser BC breaks.

To do so, we had to disable infection/infection reporting for now, as the mutation testing setup is not yet capable of working with phpunit/phpunit:^9.3.

In addition to that, we now actively replace composer/package-versions-deprecated, which is constantly causing issues in installation, and which is fully replaced by this specific package. If you run composer/composer:^2.0 and php:8.0.0, there is no reason to use composer/package-versions-deprecated anyway.

Please note that the support for PHP is limited to php:^7.4.7 || php:~8.0.0: php:8.1.0 is NOT supported by this release, as the upstream ecosystem is just too unstable and regularly breaks BC in multiple ways. Once php:8.1.0-rc2 is out (possibly next year), work will be done to support that too.

2.1.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement

2.0.0

This release turns the package into a library (previously, it was a composer plugin).

Relevant change is that the PackageVersions\Versions::ROOT_PACKAGE_NAME constant no longer exists: please use PackageVersions\Versions::rootPackageName() instead.

This slims down the complexity of the package massively, and removes multiple known bugs.

Total issues resolved: 5


Release 2.0.0

This release turns the package into a library (previously, it was a composer plugin).

Relevant change is that the PackageVersions\Versions::ROOT_PACKAGE_NAME constant no longer exists: please use PackageVersions\Versions::rootPackageName() instead.

This slims down the complexity of the package massively, and removes multiple known bugs.

2.0.0

  • Total issues resolved: 4
  • Total pull requests resolved: 2
  • Total contributors: 5

enhancement

1.11.0

Release 1.11.0

1.11.0

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement

1.10.2

Release 1.10.2

1.10.2

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 2

bug

1.10.1

Introduced release automation tooling, which should also help us with keeping the changelog up-to-date long-term.


Release 1.10.1

1.10.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

enhancement

1.10.0

This release increases the minimum supported version of composer to v2 (currently in alpha, but you should REALLY try it out).

By doing so, the code has been massively reduced, and a few relevant bugs around the detected installed package versions have been squished in the process.

In order to upgrade, you must first have composer v2 installed, which you can get by runnning its self-update tooling: composer self-update --2.

You can look at the in-depth thought-process behind this patch at https://www.twitch.tv/videos/640893205

Total issues resolved: 5

1.9.0

Build Status

This release allows ocramius/package-version to skip writing the Version class when the vendor directory is locked/not writable.

Total issues resolved: 2

1.8.0

Build Status

This release adds forward-compatibility for composer/composer:2.0.0.

Total issues resolved: 1

1.7.0

Build Status

This release adds [@psalm-pure](https://github.com/psalm-pure) to the generated version of PackageVersions\Versions. Please note that if you run your composer installation with --no-scripts and --no-plugins, then the fallback version of PackageVersions\Versions will be in use, and therefore purity is not guaranteed.

Total issues resolved: 1

1.6.0

Build Status

This release upgrades dependencies, improves testing/static analysis checks, and moves the package to PHP 7.4 as a minimum required engine version.

Total issues resolved: 4

1.4.2
1.4.1

Build Status

This release ports the ability to rely on installed.json when composer.json is not available to the stable 1.4.x branch.

Total issues resolved: 1

1.5.1

Build Status

This release fixes an issue leading FallbackVersions (used when installing with --no-scripts) to fail to detect composer.lock or installed.json locations due to getcwd() misbehavior during composer installation.

Total issues resolved: 2

1.5.0

Build Status

This release improves discovery of versions when composer.lock cannot be located, falling back to installed.json (which is at a fixed relative filesystem location).

We removed duplicate plugin runs during install/update, and runs the plugin only during the POST_AUTOLOAD_DUMP event.

The minimum supported PHP version is now PHP 7.3.0.

PHP 7.4 compatibility issues with ReflectionType#__toString() have been fixed.

Static analysis additions will also now start highlighting issues in downstream projects using vimeo/psalm (at build-time) when non-existing dependency lookups are performed against PackageVersions\Versions::getVersion(), preventing useless runtime exceptions.

Total issues resolved: 12

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests