{"id":20180581,"url":"https://github.com/ergebnis/version-constraint","last_synced_at":"2026-05-10T01:16:16.483Z","repository":{"id":214317764,"uuid":"736222837","full_name":"ergebnis/version-constraint","owner":"ergebnis","description":"🎚️ Provides a composer package with abstractions of version constraints.","archived":false,"fork":false,"pushed_at":"2024-04-25T03:56:01.000Z","size":584,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T11:41:19.969Z","etag":null,"topics":["constraint","version"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ergebnis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ergebnis","localheinz"]}},"created_at":"2023-12-27T10:10:23.000Z","updated_at":"2024-05-07T04:33:47.971Z","dependencies_parsed_at":"2023-12-27T11:32:45.361Z","dependency_job_id":"2b3c5f60-2f69-4061-b4ce-987a4bced9bb","html_url":"https://github.com/ergebnis/version-constraint","commit_stats":null,"previous_names":["ergebnis/version-constraint"],"tags_count":0,"template":false,"template_full_name":"ergebnis/php-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergebnis%2Fversion-constraint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergebnis%2Fversion-constraint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergebnis%2Fversion-constraint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergebnis%2Fversion-constraint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ergebnis","download_url":"https://codeload.github.com/ergebnis/version-constraint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241616682,"owners_count":19991542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["constraint","version"],"created_at":"2024-11-14T02:31:54.831Z","updated_at":"2026-05-10T01:16:16.471Z","avatar_url":"https://github.com/ergebnis.png","language":"PHP","funding_links":["https://github.com/sponsors/ergebnis","https://github.com/sponsors/localheinz"],"categories":[],"sub_categories":[],"readme":"# version-constraint\n\n[![Integrate](https://github.com/ergebnis/version-constraint/workflows/Integrate/badge.svg)](https://github.com/ergebnis/version-constraint/actions)\n[![Merge](https://github.com/ergebnis/version-constraint/workflows/Merge/badge.svg)](https://github.com/ergebnis/version-constraint/actions)\n[![Release](https://github.com/ergebnis/version-constraint/workflows/Release/badge.svg)](https://github.com/ergebnis/version-constraint/actions)\n[![Renew](https://github.com/ergebnis/version-constraint/workflows/Renew/badge.svg)](https://github.com/ergebnis/version-constraint/actions)\n\n[![Code Coverage](https://codecov.io/gh/ergebnis/version-constraint/branch/main/graph/badge.svg)](https://codecov.io/gh/ergebnis/version-constraint)\n[![Type Coverage](https://shepherd.dev/github/ergebnis/version-constraint/coverage.svg)](https://shepherd.dev/github/ergebnis/version-constraint)\n\n[![Latest Stable Version](https://poser.pugx.org/ergebnis/version-constraint/v/stable)](https://packagist.org/packages/ergebnis/version-constraint)\n[![Total Downloads](https://poser.pugx.org/ergebnis/version-constraint/downloads)](https://packagist.org/packages/ergebnis/version-constraint)\n[![Monthly Downloads](http://poser.pugx.org/ergebnis/version-constraint/d/monthly)](https://packagist.org/packages/ergebnis/version-constraint)\n\nThis project provides a [`composer`](https://getcomposer.org) package with abstractions of version constraints.\n\n## Installation\n\nRun\n\n```sh\ncomposer require ergebnis/version-constraint\n```\n\n## Usage\n\nThis project comes with the following components:\n\n- [`Ergebnis\\VersionConstraint\\Composer\\TildeVersionRange`](#composertildeversionrange)\n\n### `Composer\\TildeVersionRange`\n\n#### Create a `Composer\\TildeVersionRange` from a string\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Ergebnis\\VersionConstraint;\n\n$versionConstraint = VersionConstraint\\Composer\\TildeVersionRange::fromString('~1.0.0');\n\necho $versionConstraint-\u003etoString(); // ~1.0.0\n```\n\n## Changelog\n\nThe maintainers of this project record notable changes to this project in a [changelog](CHANGELOG.md).\n\n## Contributing\n\nThe maintainers of this project suggest following the [contribution guide](.github/CONTRIBUTING.md).\n\n## Code of Conduct\n\nThe maintainers of this project ask contributors to follow the [code of conduct](https://github.com/ergebnis/.github/blob/main/CODE_OF_CONDUCT.md).\n\n## General Support Policy\n\nThe maintainers of this project provide limited support.\n\nYou can support the maintenance of this project by [sponsoring @ergebnis](https://github.com/sponsors/ergebnis).\n\n## PHP Version Support Policy\n\nThis project supports PHP versions with [active and security support](https://www.php.net/supported-versions.php).\n\nThe 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.\n\n## Security Policy\n\nThis project has a [security policy](.github/SECURITY.md).\n\n## License\n\nThis project uses the [MIT license](LICENSE.md).\n\n## Social\n\nFollow [@localheinz](https://twitter.com/intent/follow?screen_name=localheinz) and [@ergebnis](https://twitter.com/intent/follow?screen_name=ergebnis) on Twitter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergebnis%2Fversion-constraint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fergebnis%2Fversion-constraint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergebnis%2Fversion-constraint/lists"}