https://github.com/ergebnis/version-constraint
🎚️ Provides a composer package with abstractions of version constraints.
https://github.com/ergebnis/version-constraint
constraint version
Last synced: 3 months ago
JSON representation
🎚️ Provides a composer package with abstractions of version constraints.
- Host: GitHub
- URL: https://github.com/ergebnis/version-constraint
- Owner: ergebnis
- License: mit
- Created: 2023-12-27T10:10:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-25T03:56:01.000Z (about 1 year ago)
- Last Synced: 2024-05-01T11:41:19.969Z (about 1 year ago)
- Topics: constraint, version
- Language: PHP
- Size: 570 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# version-constraint
[](https://github.com/ergebnis/version-constraint/actions)
[](https://github.com/ergebnis/version-constraint/actions)
[](https://github.com/ergebnis/version-constraint/actions)
[](https://github.com/ergebnis/version-constraint/actions)[](https://codecov.io/gh/ergebnis/version-constraint)
[](https://shepherd.dev/github/ergebnis/version-constraint)[](https://packagist.org/packages/ergebnis/version-constraint)
[](https://packagist.org/packages/ergebnis/version-constraint)
[](https://packagist.org/packages/ergebnis/version-constraint)This project provides a [`composer`](https://getcomposer.org) package with abstractions of version constraints.
## Installation
Run
```sh
composer require ergebnis/version-constraint
```## Usage
This project comes with the following components:
- [`Ergebnis\VersionConstraint\Composer\TildeVersionRange`](#composertildeversionrange)
### `Composer\TildeVersionRange`
#### Create a `Composer\TildeVersionRange` from a string
```php
toString(); // ~1.0.0
```## Changelog
The maintainers of this project record notable changes to this project in a [changelog](CHANGELOG.md).
## Contributing
The maintainers of this project suggest following the [contribution guide](.github/CONTRIBUTING.md).
## Code of Conduct
The maintainers of this project ask contributors to follow the [code of conduct](https://github.com/ergebnis/.github/blob/main/CODE_OF_CONDUCT.md).
## General Support Policy
The maintainers of this project provide limited support.
You can support the maintenance of this project by [sponsoring @localheinz](https://github.com/sponsors/localheinz) or [requesting an invoice for services related to this project](mailto:[email protected]?subject=ergebnis/version-constraint:%20Requesting%20invoice%20for%20services).
## PHP Version Support Policy
This project supports PHP versions with [active and security support](https://www.php.net/supported-versions.php).
The maintainers of this project add support for a PHP version following its initial release and drop support for a PHP version when it has reached the end of security support.
## Security Policy
This project has a [security policy](.github/SECURITY.md).
## License
This project uses the [MIT license](LICENSE.md).
## Social
Follow [@localheinz](https://twitter.com/intent/follow?screen_name=localheinz) and [@ergebnis](https://twitter.com/intent/follow?screen_name=ergebnis) on Twitter.