PHPackages                             ergebnis/version-constraint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ergebnis/version-constraint

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ergebnis/version-constraint
===========================

Provides abstractions of version constraints.

10[1 issues](https://github.com/ergebnis/version-constraint/issues)[1 PRs](https://github.com/ergebnis/version-constraint/pulls)PHPCI passing

Since Jun 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ergebnis/version-constraint)[ Packagist](https://packagist.org/packages/ergebnis/version-constraint)[ RSS](/packages/ergebnis-version-constraint/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (43)Used By (0)

version-constraint
==================

[](#version-constraint)

[![Integrate](https://github.com/ergebnis/version-constraint/workflows/Integrate/badge.svg)](https://github.com/ergebnis/version-constraint/actions)[![Merge](https://github.com/ergebnis/version-constraint/workflows/Merge/badge.svg)](https://github.com/ergebnis/version-constraint/actions)[![Release](https://github.com/ergebnis/version-constraint/workflows/Release/badge.svg)](https://github.com/ergebnis/version-constraint/actions)[![Renew](https://github.com/ergebnis/version-constraint/workflows/Renew/badge.svg)](https://github.com/ergebnis/version-constraint/actions)

[![Code Coverage](https://camo.githubusercontent.com/0530e12902a965287704b39d69116dcdd4b2b642f4f5173ccfc5ce856300d2d7/68747470733a2f2f636f6465636f762e696f2f67682f65726765626e69732f76657273696f6e2d636f6e73747261696e742f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ergebnis/version-constraint)[![Type Coverage](https://camo.githubusercontent.com/8b949adeb5415dca1b7b61dc9d218de19adc056cd164d2b9138d0b7fd127bb0f/68747470733a2f2f73686570686572642e6465762f6769746875622f65726765626e69732f76657273696f6e2d636f6e73747261696e742f636f7665726167652e737667)](https://shepherd.dev/github/ergebnis/version-constraint)

[![Latest Stable Version](https://camo.githubusercontent.com/6369003569bc279cef342271ad55db99f318f9d1396c33be005047384557f1b4/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f76657273696f6e2d636f6e73747261696e742f762f737461626c65)](https://packagist.org/packages/ergebnis/version-constraint)[![Total Downloads](https://camo.githubusercontent.com/2e95f40a9541af5b68b7fa09285fdc3e28457b6af23d404fe73caaf8fbeec47c/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f76657273696f6e2d636f6e73747261696e742f646f776e6c6f616473)](https://packagist.org/packages/ergebnis/version-constraint)[![Monthly Downloads](https://camo.githubusercontent.com/13d9b890c8fc120812c103a7a57c48770df928c102c90b0b2f2357d72c008a28/687474703a2f2f706f7365722e707567782e6f72672f65726765626e69732f76657273696f6e2d636f6e73747261696e742f642f6d6f6e74686c79)](https://packagist.org/packages/ergebnis/version-constraint)

This project provides a [`composer`](https://getcomposer.org) package with abstractions of version constraints.

Installation
------------

[](#installation)

Run

```
composer require ergebnis/version-constraint
```

Usage
-----

[](#usage)

This project comes with the following components:

- [`Ergebnis\VersionConstraint\Composer\TildeVersionRange`](#composertildeversionrange)

### `Composer\TildeVersionRange`

[](#composertildeversionrange)

#### Create a `Composer\TildeVersionRange` from a string

[](#create-a-composertildeversionrange-from-a-string)

```
