trinity/core-interfaces
Core contracts and interfaces for the Trinity PHP framework: shared abstractions for modules, containers, service providers, and registries. Keeps packages decoupled, testable, and interoperable across Laravel and standalone PHP projects. Lightweight, framework-agnostic, and easy to implement.
Consider only if:
Look elsewhere when:
psr/*, illuminate/contracts, or symfony/contracts instead. They are maintained, documented, widely depended upon, and PHP-version-current.For executives: We evaluated trinity/core-interfaces and recommend against adoption. It is a contracts-only package for a niche framework, with zero stars, zero dependents, and no release since July 2017. Adopting it gives us no functional capability, no vendor support, and no security patching — but does create a permanent internal maintenance obligation and supply-chain exposure. The opportunity score suggests a gap in the market for a modern contracts layer, not a reason to take on abandoned code. Recommendation: decline, and if we need equivalent contracts, spend a few engineering days building a thin internal layer or standardize on PSR/Illuminate.
For engineering: The package is interface definitions — no runtime logic worth inheriting. The design ideas (interface-first, dependency inversion) are sound and we already get them from PSR and Illuminate. If a legacy Trinity system forces the dependency, vendor/fork it, pin the exact commit, add it to the unmaintained-dependency register, and wrap it behind our own contracts so it can be swapped out. Do not introduce it into new services, and do not let it appear in a shared library that other teams depend on.
How can I help you explore Laravel packages today?