[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8454":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},8454,"contracts","symfony\u002Fcontracts","symfony","A set of abstractions extracted out of the Symfony components","https:\u002F\u002Fsymfony.com\u002Fcontracts",null,"PHP",3941,19,14,0,1,3,56.7,"MIT License",false,"main",[23,24,5,25,26,27,28,29,30,7,31],"abstractions","component","decoupling","dev","interfaces","interoperability","php","standards","symfony-component","2026-06-12 04:00:39","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\u002F*-implementation`\nconvention (e.g. `\"provide\": { \"symfony\u002Fcache-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:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcomponents\u002Fcontracts.html)\n * [Contributing](https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcontributing\u002Findex.html)\n * [Report issues](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony\u002Fissues) and\n   [send Pull Requests](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony\u002Fpulls)\n   in the [main Symfony repository](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony)\n","Symfony\u002Fcontracts 是一套从 Symfony 组件中提取出来的抽象层。它提供了经过实践验证的接口、特性以及规范文档注释，旨在增强代码的解耦和互操作性。项目按照领域将契约分到各自的子命名空间下，并且每个契约都是一组小巧一致的 PHP 接口集合。这些契约支持向后兼容现有的 Symfony 组件，并且任何实现特定契约的包都可以在 composer.json 文件的 \"provide\" 部分列出它们。该项目非常适合需要提高应用灵活性与可维护性的 PHP 开发者使用，特别是在构建依赖于 Symfony 生态系统但又希望保持技术栈开放性的场景下。",2,"2026-06-11 03:18:06","top_language"]