boson-php/uri-factory-contracts
Lightweight PHP 8.4+ contracts for URI factory implementations used in the Boson ecosystem. Install via Composer and implement the interfaces to standardize URI creation across packages and applications.
/api/v1/users/{id}) with validation.spatie/url).Url facade suffices without abstraction.For Executives: "This package provides a lightweight, standardized way to generate URIs across our Laravel services, reducing technical debt and improving consistency. By adopting this contract, we can future-proof our API design for microservices while cutting down on reinventing URI logic. It’s a low-risk, high-reward move—think of it as a ‘design system’ for URLs that aligns with our API-first strategy."
For Engineering:
"This gives us a contract-first approach to URI generation, meaning we can define interfaces for URIs (e.g., UserUriFactory) and swap implementations later. It’s minimal (~33% opportunity score) but plays well with Laravel’s ecosystem. Let’s prototype it for one module (e.g., API endpoints) to validate the pattern before wider adoption. The risk is low—it’s just interfaces, so we can always roll back if it doesn’t add value."
For Architects: *"This supports our goal of modularity by standardizing how URIs are constructed across services. It’s particularly useful if we’re:
How can I help you explore Laravel packages today?