{"id":13562731,"url":"https://github.com/symfony/contracts","last_synced_at":"2026-01-24T18:04:23.072Z","repository":{"id":37773860,"uuid":"140839212","full_name":"symfony/contracts","owner":"symfony","description":"A set of abstractions extracted out of the Symfony components","archived":false,"fork":false,"pushed_at":"2025-06-01T07:21:01.000Z","size":495,"stargazers_count":3922,"open_issues_count":0,"forks_count":21,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-07-07T20:09:01.669Z","etag":null,"topics":["abstractions","component","contracts","decoupling","dev","interfaces","interoperability","php","standards","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/contracts","language":"PHP","has_issues":false,"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/symfony.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"fabpot","tidelift":"packagist/symfony/symfony","custom":"https://symfony.com/sponsor"}},"created_at":"2018-07-13T11:31:01.000Z","updated_at":"2025-07-07T12:11:32.000Z","dependencies_parsed_at":"2023-09-27T19:47:01.124Z","dependency_job_id":"1e55bc0f-fb0e-48d2-9ed7-7b846d3fd27e","html_url":"https://github.com/symfony/contracts","commit_stats":{"total_commits":259,"total_committers":51,"mean_commits":5.078431372549019,"dds":"0.45945945945945943","last_synced_commit":"841953442e9cb50d7f17f079042113bc32a128f7"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"purl":"pkg:github/symfony/contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fcontracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fcontracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fcontracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fcontracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/contracts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fcontracts/sbom","scorecard":{"id":862931,"data":{"date":"2025-08-11","repo":{"name":"github.com/symfony/contracts","commit":"97a588e965e92e3f197085531cbe440d0fcf48c3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":6,"reason":"8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/symfony/.github/SECURITY.md:1","Info: Found linked content: github.com/symfony/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/symfony/.github/SECURITY.md:1","Info: Found text in security policy: github.com/symfony/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-24T01:54:02.998Z","repository_id":37773860,"created_at":"2025-08-24T01:54:02.998Z","updated_at":"2025-08-24T01:54:02.998Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28733400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["abstractions","component","contracts","decoupling","dev","interfaces","interoperability","php","standards","symfony","symfony-component"],"created_at":"2024-08-01T13:01:11.699Z","updated_at":"2026-01-24T18:04:23.053Z","avatar_url":"https://github.com/symfony.png","language":"PHP","readme":"Symfony Contracts\n=================\n\nA set of abstractions extracted out of the Symfony components.\n\nCan be used to build on semantics that the Symfony components proved useful - and\nthat already have battle tested implementations.\n\nDesign Principles\n-----------------\n\n * contracts are split by domain, each into their own sub-namespaces;\n * contracts are small and consistent sets of PHP interfaces, traits, normative\n   docblocks and reference test suites when applicable;\n * all contracts must have a proven implementation to enter this repository;\n * they must be backward compatible with existing Symfony components.\n\nPackages that implement specific contracts should list them in the \"provide\"\nsection of their \"composer.json\" file, using the `symfony/*-implementation`\nconvention (e.g. `\"provide\": { \"symfony/cache-implementation\": \"1.0\" }`).\n\nFAQ\n---\n\n### How to use this package?\n\nThe abstractions in this package are useful to achieve loose coupling and\ninteroperability. By using the provided interfaces as type hints, you are able\nto reuse any implementations that match their contracts. It could be a Symfony\ncomponent, or another one provided by the PHP community at large.\n\nDepending on their semantics, some interfaces can be combined with autowiring to\nseamlessly inject a service in your classes.\n\nOthers might be useful as labeling interfaces, to hint about a specific behavior\nthat could be enabled when using autoconfiguration or manual service tagging (or\nany other means provided by your framework.)\n\n### How is this different from PHP-FIG's PSRs?\n\nWhen applicable, the provided contracts are built on top of PHP-FIG's PSRs. But\nthe group has different goals and different processes. Here, we're focusing on\nproviding abstractions that are useful on their own while still compatible with\nimplementations provided by Symfony. Although not the main target, we hope that\nthe declared contracts will directly or indirectly contribute to the PHP-FIG.\n\nResources\n---------\n\n * [Documentation](https://symfony.com/doc/current/components/contracts.html)\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n","funding_links":["https://github.com/sponsors/fabpot","https://tidelift.com/funding/github/packagist/symfony/symfony","https://symfony.com/sponsor"],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fcontracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fcontracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fcontracts/lists"}