Download the PHP package phprise/common-cast without Composer
On this page you can find all versions of the php package phprise/common-cast. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download phprise/common-cast
More information about phprise/common-cast
Files in phprise/common-cast
Download phprise/common-cast
More information about phprise/common-cast
Files in phprise/common-cast
Vendor phprise
Package common-cast
Short Description Common type coercers for type conversion based on OTAKU philosophy
License MIT
Package common-cast
Short Description Common type coercers for type conversion based on OTAKU philosophy
License MIT
Please rate this library. Is it a good library?
Informations about the package common-cast
common-cast
The Atomic Repository is the smallest possible unit of granularity. It enforces a strict architectural boundary through the following rules:
- No Subdirectories: Only one level of directory inside src/.
- Maximum 10 Files: Only 10 files per package.
- Strict Typing: Mandatory
declare(strict_types=1)and full type hinting for all properties and methods. - Object Calisthenics: Maximum of 50 lines per class and 2 instance variables to ensure extreme cohesion.
- Value Objects: All primitives must be wrapped. Raw strings or integers are not permitted in domain logic.
- First Class Collections: Arrays are forbidden for data transport; use dedicated Collection objects.
- Tell, Don't Ask: Getters and setters are prohibited. Objects must expose behavior, not state.
- Infrastructure Ignorance: The domain core is decoupled from persistence, frameworks, and external tools.
- Logic Flow: The
elsekeyword is banned. Use guard clauses and early returns to minimize indentation.
Installation
Install the package via composer:
Usage
[Describe here the usage]
Philosophy
We follow The OTAKU Manifesto: Fluid Structure Design.
- O - Own your Discipline (Be strict with yourself)
- T - Tools for Composition (Compose like Unix)
- A - Armor the Core (Protect the heart of the business)
- K - Keep Infrastructure Silent (Infrastructure is just a detail)
- U - Universal Language & Contracts (Speak the user's language via clear contracts)
Please read more about it in PHILOSOPHY.md.
License
MIT License
Free to use, modify, and distribute.
All versions of common-cast with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
The package phprise/common-cast contains the following files
Loading the files please wait ...