NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #128 most downloaded on Packagist
A library to get pretty versions strings of installed dependencies
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 2.4 years
Most releases are documented
notes for 17 of 20 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
20 releases · first in 2017
Improve detection of tagged version (handles edge cases like RC1, alpha-2, etc.)
{no reference} in short reference when no reference is foundBump minimum PHP version to 7.4
One column per quarter.
PHP 8.2 and 8.3 support verified
Added the Version::NO_VERSION_TEXT constant to retrieve the string used when no version is available
Handle deprecation of InstalledVersions::getRawData() from Composer 2.0.14 ( #39 , thanks @BramRoets )
InstalledVersions::getRawData() from Composer 2.0.14 (#39, thanks @BramRoets)Added the Version::NO_REFERENCE_TEXT constant to retrieve the string used when no reference is availabled ( #38 , thanks @DeyV )
Version::NO_REFERENCE_TEXT constant to retrieve the string used when no reference is available (#38, thanks @DeyV)Retrieve root package information without indirection
This small patch handles replaced and provided packages, so that consumers of this library can handle bad requests gracefully.
This small patch handles replaced and provided packages, so that consumers of this library can handle bad requests gracefully.
VersionMissingExceptionInterface, and two exceptions implementing it: ProvidedPackageException and ReplacedPackageExceptionProvidedPackageException when asking for the version of a package which is provided (was \TypeError before)ReplacedPackageException when asking for the version of a package which is replaced (was \TypeError before)…methods are preserved but deprecated to reduce breaking changes:
This release is aimed to become a bridge for native Composer 2 support. The BC breaks are minimal; if you're using it in a library, you're encouraged to require it with ^1.5 || ^2.0, so that your end users will not be constrained to use a specific Composer version.
Version methods added: getReference, getShortReference, getVersionWithShortReference (see table below)Version methods deprecated; this is a simple rename (commit to reference), to better reflect the meaning of Composer API data; the old methods are preserved but deprecated to reduce breaking changes:| New method | Old, deprecated method |
|---|---|
Version::getReference() |
Version::getCommitHash() |
Version::getShortReference() |
Version::getShortCommitHash() |
Version::getVersionWithShortReference() |
Version::getVersionWithShortCommit() |
PrettyVersions::SHORT_COMMIT_LENGTH removedVersion::SHORT_COMMIT_LENGTH made privateVersion constructor changed arguments: second argument string $version has been split into string $prettyVersion, string $referenceAdd forward compatibility layer for newer methods in 2.0 (see the 2.0 changelog )
### Added * PHP 8 support
Nothing published for this version
Nothing published for this version
Nothing published for this version
Require at least ocramius/package-versions 1.2 to fix root package version (see #3)
ocramius/package-versions 1.2 to fix root package version (see #3)Add PHP 7.2 to the build matrix for official support
ocramius/package-versions 1.1.3 to avoid issues when removing the package (see this issue)Make the package lightweight thanks to the .gitattributes file
.gitattributes file (#1)Add Version::__getShortCommitHash() method (see #8, thanks @emodric)
Version::__getShortCommitHash() method (see #8, thanks @emodric)Add Version::__toString() method (see #5)
Version::__toString() method (see #5)Jean85\PrettyVersions wraps the PackageVersions\Versions class and returns a Jean85\Version object
First release
Jean85\PrettyVersions wraps the PackageVersions\Versions class and returns a Jean85\Version objectJean85\Version has these methods available:
public function getPrettyVersion(): stringpublic function getFullVersion(): stringpublic function getVersionWithShortCommit(): stringpublic function getPackageName(): stringpublic function getShortVersion(): stringpublic function getCommitHash(): stringYour coding agent can read these notes before it upgrades. Set up the MCP server →