### Install sebastian/version with Composer Source: https://github.com/sebastianbergmann/version/blob/main/README.md Installs the sebastian/version library as a project dependency using Composer. This command adds the library to your project's `composer.json` file and downloads it. ```bash composer require sebastian/version ``` -------------------------------- ### Install sebastian/version as a Development Dependency Source: https://github.com/sebastianbergmann/version/blob/main/README.md Installs the sebastian/version library as a development-time dependency using Composer. This is useful for tools like test suites that only require the library during development. ```bash composer require --dev sebastian/version ``` -------------------------------- ### Basic Usage of SebastianBergmann\Version Source: https://github.com/sebastianbergmann/version/blob/main/README.md Demonstrates the basic usage of the `SebastianBergmann\Version` class. It shows how to instantiate the class with a release version and a path, and then retrieve the version string using the `asString()` method. ```php asString()); ``` -------------------------------- ### Version Component Changelog Source: https://github.com/sebastianbergmann/version/blob/main/ChangeLog.md This changelog details notable changes for the version component, organized by release version. It follows the Keep a CHANGELOG principles, documenting additions, changes, removed features, and fixes for each version. ```markdown # ChangeLog All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. ## [6.0.0] - 2025-02-07 ### Removed * This component is no longer supported on PHP 8.2 ## [5.0.2] - 2024-10-09 ### Changed * [#21](https://github.com/sebastianbergmann/version/pull/21): Avoid spawning a shell for Git ## [5.0.1] - 2024-07-03 ### Changed * This project now uses PHPStan instead of Psalm for static analysis ## [5.0.0] - 2024-02-02 ### Removed * This component is no longer supported on PHP 8.1 ## [4.0.1] - 2023-02-07 ### Fixed * [#17](https://github.com/sebastianbergmann/version/pull/17): Release archive contains unnecessary assets ## [4.0.0] - 2023-02-03 ### Changed * `Version::getVersion()` has been renamed to `Version::asString()` ### Removed * This component is no longer supported on PHP 7.3, PHP 7.4, and PHP 8.0 ## [3.0.2] - 2020-09-28 ### Changed * Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3` ## [3.0.1] - 2020-06-26 ### Added * This component is now supported on PHP 8 ## [3.0.0] - 2020-01-21 ### Removed * This component is no longer supported on PHP 7.1 and PHP 7.2 [6.0.0]: https://github.com/sebastianbergmann/version/compare/5.0...6.0.0 [5.0.2]: https://github.com/sebastianbergmann/version/compare/5.0.1...5.0.2 [5.0.1]: https://github.com/sebastianbergmann/version/compare/5.0.0...5.0.1 [5.0.0]: https://github.com/sebastianbergmann/version/compare/4.0...5.0.0 [4.0.1]: https://github.com/sebastianbergmann/version/compare/4.0.0...4.0.1 [4.0.0]: https://github.com/sebastianbergmann/version/compare/3.0.2...4.0.0 [3.0.2]: https://github.com/sebastianbergmann/version/compare/3.0.1...3.0.2 [3.0.1]: https://github.com/sebastianbergmann/version/compare/3.0.0...3.0.1 [3.0.0]: https://github.com/sebastianbergmann/version/compare/2.0.1...3.0.0 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.