{"id":88120,"library":"symfony-contracts","title":"Symfony Contracts","description":"A set of abstractions extracted out of the Symfony components","status":"active","version":"3.7.0","language":"php","source_language":null,"source_url":"https://github.com/symfony/contracts","tags":["symfony","contracts","abstractions","interfaces"],"install":[{"cmd":"composer require symfony/contracts","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"ServiceSubscriberInterface","correct":"use Symfony\\Contracts\\Service\\ServiceSubscriberInterface;"}],"quickstart":{"code":"use Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\nclass MyService implements ServiceSubscriberInterface\n{\n    public static function getSubscribedServices(): array\n    {\n        return ['logger' => '?'.LoggerInterface::class];\n    }\n}","lang":"php","description":"Implement a service subscriber using Symfony Contracts."},"warnings":[],"env_vars":null,"search_vec":"'abstract':6,15 'compon':12 'contract':2,14 'extract':7 'interfac':16 'set':4 'symfoni':1,11,13","created_at":"2026-06-19T08:27:35.571371+00:00","updated_at":"2026-06-19T08:27:35.571371+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://symfony.com","github":"https://github.com/symfony/contracts","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}