symfony/contracts
Symfony Contracts provides small, domain-focused PHP interfaces, traits, and normative docblocks extracted from Symfony components. Use them as stable type hints for loose coupling, interoperability, and easy DI/autowiring with battle-tested implementations.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| illuminate/contracts | 0.88 | Laravel’s core contract interfaces for frameworks and packages. Provides stable abstractions for services like cache, queue, events, routing, validation, and more, enabling clean dependency injection and easy swapping of implementations across the ecosystem. | 706 | 713 | 82 | 3M | 0 | 6.1 | 49.2 | MIT | — | |
| symfony/service-contracts | 0.88 | Symfony Service Contracts provides lightweight, battle-tested abstractions extracted from Symfony components. Use these shared interfaces to build interoperable libraries and apps with proven semantics and consistent behavior across the Symfony ecosystem. | 2,612 | 2,629 | 7 | 18M | 0 | 33.6 | 61.7 | MIT | 3 weeks ago | |
| symfony/cache-contracts | 0.86 | Symfony Cache Contracts defines lightweight, PSR-friendly interfaces for cache and tag-aware caching, enabling consistent cache usage across Symfony components and third-party libraries. Use it to type-hint against stable APIs while swapping cache implementations. | 2,368 | 2,383 | 6 | 8M | 0 | 32.8 | 56.8 | MIT | 3 weeks ago | |
| anzusystems/contracts | 0.86 | Common contracts for AnzuSystems projects: reusable PHP interfaces, traits, abstracts, enums, and shared utilities. Includes identifiable/value object patterns, time/user tracking, document and cache settings contracts, plus core app/user/permission helpers and exceptions. | 1 | 1 | 0 | 1K | 0 | 22.4 | 42.9 | Apache-2.0 | 3 months ago | |
| hyperf/contract | 0.86 | Core contracts for Hyperf: a set of lightweight PHP interfaces that define common behaviors across the framework (DI, events, middleware, serialization, etc.). Helps decouple components, improve testability, and keep implementations swappable. | 4 | 4 | 4 | 61K | 0 | 27.5 | 64.1 | MIT | 1 month ago | |
| symfony/translation-contracts | 0.86 | Symfony Translation Contracts provides lightweight interfaces and abstractions for translation in PHP, extracted from Symfony components. Use it to build interoperable, battle‑tested translation integrations while staying framework-agnostic and compatible with Symfony implementations. | 2,585 | 2,605 | 3 | 16M | 0 | 32.5 | 61.0 | MIT | 3 weeks ago | |
| draw/contracts | 0.85 | Lightweight PHP contracts for Draw packages. Provides shared interfaces and abstractions to standardize implementations across components, improving interoperability, testing, and decoupling in Laravel or framework-agnostic projects. | 0 | 0 | 0 | 1K | 0 | 0.0 | 42.7 | — | — | |
| symfony/http-client-contracts | 0.85 | Symfony HttpClient Contracts provides stable interfaces for HTTP clients and responses, extracted from Symfony. Build libraries against these battle-tested abstractions and swap implementations easily while staying compatible with Symfony’s HttpClient ecosystem. | 1,975 | 1,978 | 0 | 9M | 0 | 30.8 | 58.6 | MIT | 3 weeks ago | |
| dragon-code/contracts | 0.85 | Dragon Code Contracts provides a lightweight set of PHP interfaces (contracts) you can reuse across projects and packages. Use it to standardize common behaviors and keep implementations decoupled and consistent throughout your codebase. | 10 | 10 | 0 | 460K | 0 | 23.9 | 62.3 | MIT | 4 months ago | |
| symfony/event-dispatcher-contracts | 0.85 | Defines lightweight, version-stable contracts for Symfony’s EventDispatcher: interfaces and abstractions shared across components. Use it to type-hint and build compatible event dispatching integrations with proven Symfony semantics without pulling full implementations. | 3,416 | 3,421 | 3 | 17M | 0 | 37.7 | 59.8 | MIT | 3 weeks ago | |
| boson/cache-bundle | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| wp-starter/contracts | 0.84 | Laravel/PHP contract interfaces for a WordPress starter kit. Defines shared abstractions to keep packages decoupled and implementations swappable, providing a lightweight base for building WordPress integrations in a Laravel-style architecture. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 3 years ago | |
| aslan-asilon31/aslan-solid-package | 0.84 | Laravel package showcasing SOLID principles with a clean, modular structure. Provides example abstractions and patterns to organize services, keep dependencies decoupled, and improve maintainability in real-world apps. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — |
How can I help you explore Laravel packages today?