dragon-code/contracts
Dragon Code Contracts provides a lightweight set of PHP interfaces (contracts) you can reuse across any project to standardize key behaviors, improve type-safety, and keep implementations decoupled. Ideal as a shared dependency for packages and applications.
Cache\Store, Queue\ShouldQueue), decoupling implementations from business logic.rememberForever, ShouldBeUnique).dragon-code/helpers) by providing foundational contracts like Dtoable, ensuring seamless compatibility with advanced features like serialization.Adopt this package if:
dragon-code/helpers) and need contracts like Dtoable for serialization or other advanced features.rememberForever in caching, job deduplication with ShouldBeUnique).Look elsewhere if:
For Executives: *"This package standardizes interfaces for Laravel’s most repetitive patterns—caching, queues, and data transfer—saving development time and reducing technical debt. By adopting these contracts, we can:
dragon-code/helpers.
It’s a low-risk, high-reward decision: zero runtime cost, pure type hints, and immediate benefits for maintainability, scalability, and developer productivity."*For Engineering/Architecture Teams: *"TheDragonCode’s contracts enable decoupled, testable, and reusable components by providing pre-built interfaces for Laravel’s critical systems. Key benefits include:
Cache\Store or ShouldQueue for isolated unit tests, improving code quality and reducing integration risks.dragon-code/helpers (e.g., Dtoable for serialization), ensuring seamless integration with other DragonCode packages.Integration is effortless:
composer require dragon-code/contracts.class MyDto implements Dtoable).Ideal for teams adopting microservices, modular monoliths, or clean architecture in Laravel."*
For Developers: *"Stop reinventing the wheel for DTOs, caching, queues, and HTTP clients. This package gives you ready-to-use contracts for:
Dtoable for seamless serialization with dragon-code/helpers.Cache\Ttl or rememberForever without writing custom interfaces.ShouldQueue or ShouldBeUnique to jobs for built-in deduplication.Http\Builder contracts.How to start:
composer require dragon-code/contracts.class MyJob implements ShouldQueue).How can I help you explore Laravel packages today?