"Be, Don't Do" - A paradigm where objects represent states of being, not collections of behaviors.
The Ontological Programming Framework for PHP
Be Framework implements Ontological Programming - focusing on what things are rather than what they do. Objects represent immutable states that transform through constructor-driven metamorphosis.
- New Paradigm - Shift from "what to do" to "what to be"
- Semantic Variables - Variable names carry meaning and constraints
- AI Native - Define meaning and constraints, let AI optimize implementation
- No Invalid States - Objects can't exist in broken states
- Temporal Existence - Time and domain are inseparable; objects exist in time
- Natural Testing - Each state is independently verifiable
Run the hello-world example to see Be Framework in action:
php example/hello-world.phpThis demonstrates:
- Constructor-driven metamorphosis
- Type-driven branching (formal vs casual styles)
- Semantic validation with meaningful error messages
- Automatic transformation through
#[Be]attributes