{"id":28236261,"url":"https://github.com/phpexpertsinc/composerconstraintsparser","last_synced_at":"2026-02-23T18:34:21.329Z","repository":{"id":288244584,"uuid":"967021751","full_name":"PHPExpertsInc/ComposerConstraintsParser","owner":"PHPExpertsInc","description":"An independent implementation of composer's versions constraints parser.","archived":false,"fork":false,"pushed_at":"2025-04-16T10:24:07.000Z","size":236,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-05-19T00:14:00.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHPExpertsInc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.mit.actual.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-15T20:02:09.000Z","updated_at":"2025-05-08T13:08:03.000Z","dependencies_parsed_at":"2025-04-16T12:47:44.277Z","dependency_job_id":"bfb14f2f-c49e-4879-824a-08ad429793a1","html_url":"https://github.com/PHPExpertsInc/ComposerConstraintsParser","commit_stats":null,"previous_names":["phpexpertsinc/composerconstraintsparser"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FComposerConstraintsParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FComposerConstraintsParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FComposerConstraintsParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FComposerConstraintsParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPExpertsInc","download_url":"https://codeload.github.com/PHPExpertsInc/ComposerConstraintsParser/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FComposerConstraintsParser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259037660,"owners_count":22796463,"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":[],"created_at":"2025-05-19T00:13:58.927Z","updated_at":"2026-02-23T18:34:21.303Z","avatar_url":"https://github.com/PHPExpertsInc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer Constraints Parser\n\nComposer Constraints Parser is a PHP Experts, Inc., Project that is a clean-room implementation of Packagist's\ncomposer's version constraint system.\n\nIt is meant as a zero-dependency option to faithfully interpret whether any particular version number is satisfiable\nby a composer verison constraint.\n\nNOTE: 95% of this code was generated by the autonomous AI agents of Autonomo, by Autonomous Programming, LLC.\nSee https://gist.github.com/hopeseekr/fdb0ff9bd0957ea8d226ccc2def88d99\n\nThis project contains 100% of all of the in-the-world composer version constraints of every dependency of every package\nin the entire packagist.org database. These can be found in [tests/constraints.json].\n\nThere are 155,623 test assertions testing all 48,209 in-the-wild composer version constraints and has 100% fidelity.\nIt is current as of 2025-04-01.\n\nThis is possible because of the Bettergist Collector API, which archives every PHP packagist package weekly and does\ndeep analysis of them quarterly.\n\n## Installation\n\nVia Composer\n\n```bash\ncomposer require phpexperts/composer-version-parser\n```\n\n## Usage\n\n```php\nuse PHPExperts\\ComposerVersionConstraints\\ComposerConstraintsHelper;\n\n$satisfies = ComposerConstraintsHelper::versionSatisfies('7.4', '^7.4|^8.0');\n// true\n```\n\n## Use cases\n\n ✔ Can determine if a constraint is valid  \n ✔ Complex composer constraints  \n ✔ All composer constraints  \n ✔ Known constraint  \n\n## Testing\n\n```bash\nphpunit\n```\n\n## Contributors\n\n[Theodore R. Smith](https://www.phpexperts.pro/]) \u003ctheodore@phpexperts.pro\u003e  \nGPG Fingerprint: 4BF8 2613 1C34 87AC D28F  2AD8 EB24 A91D D612 5690  \nCEO: PHP Experts, Inc.\n\n## License\n\nMIT license. Please see the [license file](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fcomposerconstraintsparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpexpertsinc%2Fcomposerconstraintsparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fcomposerconstraintsparser/lists"}