Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 16, 2024 via composer

jean85/pretty-package-versions 2.0.5

A library to get pretty versions strings of installed dependencies
Package summary
Share
0
issues
1
license
1
MIT
Package created
5 Jul 2017
Version published
8 Oct 2021
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
jean85/pretty-package-versions@2.0.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of jean85/pretty-package-versions 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does jean85/pretty-package-versions do?

The Jean85/Pretty-Package-Versions is a smart, independent wrapper designed for retrieving eloquent version strings of your dependencies. It's a highly valuable tool for developers, streamlining the way they track and view different versions of their installed dependencies. Furthermore, this package provides a smooth upgrade path, enabling users to obtain pretty versions without restricting them to any specific Composer version.

How do you use jean85/pretty-package-versions?

To use Jean85/Pretty-Package-Versions, you must first install it using Composer. You can do this from the CLI using the command composer require 'jean85/pretty-package-versions:^1.5 || ^2.0'. Alternatively, you can add this directly to your composer.json file:

{
    "require": {
        "jean85/pretty-package-versions": "^1.5 || ^2.0"
    }
}

Once installed, you can utilize the package through the Jean85\PrettyVersions class. This class provides a single method returning a Jean85\Version object for the requested package.

Here is a simple usage example:

use Jean85\PrettyVersions;

$version = PrettyVersions::getVersion('phpunit/phpunit');
echo $version->getPrettyVersion(); // Example Output: '6.0.0'

This package also provides several other useful methods to get specific version information, like getShortVersion(), getReference(), getShortReference(), getVersionWithShortReference(), and others.

Where are the jean85/pretty-package-versions docs?

The comprehensive documentation and related details for the jean85/pretty-package-versions can be found directly on its GitHub page. This includes installation instructions, a compatibility chart, complete usage instructions including code examples, and more. Visit the Jean85/Pretty-Package-Versions GitHub page to access all of these resources and further understand how to optimally leverage this highly useful package.