charcoal-dev/contracts
Lightweight set of PHP/Laravel contract interfaces for the Charcoal ecosystem. Defines shared abstractions to keep packages decoupled and consistent, making it easier to swap implementations, test components, and build integrations across projects.
respect/validation if contracts are overkill.For Executives: "Charcoal’s contract layer lets us build a modular, future-proof PHP framework tailored to our needs—reducing tech debt by standardizing how services communicate. Think of it as ‘Laravel Lego blocks’: we define the rules once, then swap implementations (e.g., auth providers, databases) without rewriting apps. This cuts integration time by 30%+ and future-proofs our stack for acquisitions or new features."
For Engineering: *"This package gives us:
For Developers: *"No more guessing how to structure APIs or validate requests—contracts enforce it. Example:
// Define a contract for user creation
interface CreateUserContract {
public function validate(array $data): bool;
public function execute(array $data): User;
}
Then implement it for your service. Less boilerplate, more predictability."*
How can I help you explore Laravel packages today?