Common Contracts
AtomThe interfaces every commons package agrees on. Contracts only: no logic, no leaks.
Atom ยท Library
Explicit type coercers. Conversion is a decision, never an accident.
composer require phprise/common-castCommon Cast is an atomic repository: the smallest unit that still fulfils a complete contract. It has no subdirectories and no dependencies beyond the contracts it implements. Its full documentation, tests and contribution rules live in the repository.
Every PHPRise package follows the same promise: small surface, explicit dependencies, no hidden globals, and a contract you can replace. Read the manifesto for the rules this repository obeys.
Same shape
The interfaces every commons package agrees on. Contracts only: no logic, no leaks.
Small, composable traits shared by the commons. Behaviour you can attach, not inherit.
PHP primitives wrapped with intent: if it is a string, say which string.