{"id":87954,"library":"symfony-service-contracts","title":"Symfony Service Contracts","description":"Generic abstractions related to writing services.","status":"active","version":"3.7.0","language":"php","source_language":null,"source_url":"https://github.com/symfony/service-contracts","tags":["symfony","contracts","services","abstractions"],"install":[{"cmd":"composer require symfony/service-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    public static function getSubscribedServices(): array {\n        return [];\n    }\n}","lang":"php","description":"Implement the service subscriber interface for dependency injection."},"warnings":[],"env_vars":null,"search_vec":"'abstract':5,13 'contract':3,11 'generic':4 'relat':6 'servic':2,9,12 'symfoni':1,10 'write':8","created_at":"2026-06-19T08:25:09.323232+00:00","updated_at":"2026-06-19T08:25:09.323232+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/service-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}}