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

0.x-dev 2025-09-21 15:02 UTC

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