Be Framework - The Ontological Programming Framework for PHP
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 4
Forks: 2
Open Issues: 2
pkg:composer/be-framework/be
Requires
- php: ^8.3
- koriym/semantic-logger: ^0.2.1
- ray/di: ^2.18
- ray/input-query: ^v1.0
Requires (Dev)
- doctrine/coding-standard: ^14.0.x-dev
- justinrainbow/json-schema: ^6.5
- koriym/xdebug-mcp: ^0.3
- maglnet/composer-require-checker: ^4.7
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.2
- vimeo/psalm: ^6.0@dev
This package is auto-updated.
Last update: 2025-09-21 15:02:56 UTC
README
"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.
Key Features
- 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
Documentation
Demo
Run the hello-world example to see Be Framework in action:
php example/hello-world.php
This demonstrates:
- Constructor-driven metamorphosis
- Type-driven branching (formal vs casual styles)
- Semantic validation with meaningful error messages
- Automatic transformation through
#[Be]
attributes