Ross ROSS = Recommend OSS · open-source software intelligence for agents

symfony/contracts

A set of abstractions extracted out of the Symfony components observed · 2026-08-28

github.com/symfony/contracts · homepage · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

95/100

  • Activity 96
  • Release rhythm 90
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 25.5
  • age_days: 2973
  • days_rel: 67
  • days_push: 29
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

3927 stars · 19 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Symfony Contracts is a set of PHP interfaces, traits, and normative docblocks extracted from Symfony components, published as small per-domain packages. It lets developers type-hint against stable abstractions so their code works with any conforming implementation, Symfony's or otherwise.

Use cases

  • decouple my PHP code from specific Symfony component implementations
  • type-hint against interfaces so any compatible library can be swapped in
  • build a PHP package that interoperates with Symfony components
  • use autowiring-friendly interfaces for dependency injection
  • declare which contracts my package implements via composer 'provide'
  • find a PHP equivalent to PSRs with Symfony-backed semantics

When to choose

  • you write framework-agnostic PHP libraries that should work with Symfony
  • you want loose coupling and swappable implementations behind stable interfaces
  • you build services meant to be injected via Symfony autowiring
  • you need battle-tested abstractions with reference test suites

When to avoid

  • you need concrete implementations rather than interfaces
  • your project doesn't use Composer or PHP
  • you only target PSR standards and don't need Symfony-specific semantics

Facets

library · maturity stable

middleware plugin-system developer-tools web-development backend developer-tools apis php cross-platform interfaces abstractions decoupling interoperability standards symfony composer loose-coupling type-hints service-container php

6 sources

Member repositories

RepositoryRoleHealth v2
symfony/contractsmain95

For agents

markdown · JSON · MCP: product_card(name="symfony/contracts")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem