Describe a resource and its routes; the framework generates the screens, validation and permissions. No build step, no mandatory Composer, RTL from the first line.
$ php widdx make:crud Product name:string price:float photo:imageModel, migration, routes, typed form, validation and navigation — from one signature.
WIDDX Framework (Widdx) is the base WIDDX Studio builds small systems on. Conventions replace configuration, and the framework writes the parts nobody should write twice — so a working chapter of an application exists before the first file is opened.
The framework does not add a layer over PHP; it removes the repeated work between a requirement and a working screen.
Three calls cover most of what a small system needs. Everything below is the framework's real API, not pseudocode.
resource('posts')->public();Seven routes and five pages, with validation derived from the column types.
authRoutes();Sign-up, sign-in, sign-out, password recovery, email verification and throttling.
// App\Policies\BookPolicy exists → CRUD is guardedNo policy and no ->public() means private by default.
One problem per audience, and what the framework does about it.
The problem
Classical MVC opens with files, config and conventions before anything runs.
What Widdx does
One command, then working pages — the conventions are learned by using them.
The problem
No terminal, no Composer, no background daemon.
What Widdx does
Upload a folder, open /install.php, add one cron entry. Nothing else to provision.
The problem
RTL is redone on every page, and breaks on the next feature.
What Widdx does
APP_LOCALE=ar renders the built-in pages with dir="rtl" without per-page work.
The problem
Familiar names that behave differently, failing silently.
What Widdx does
Honest fatal errors instead of guessing, plus a migration path in the curriculum.
The problem
An agent that adds code on top of working code, unmeasured.
What Widdx does
A binding contract (AGENTS.md) the agent's output is reviewed against.
The result: less distance between wanting a feature and having it work — repetition removed, not knowledge.
In Widdx you do not configure behaviour, you name it. Six rules are the entire surface area you need to work without errors.
Post → posts; OrderItem → order_items. No $table to set; the convention is enough.
Input models are built from the same $rules array: string→text, text→textarea, bool→checkbox, in:a,b→dropdown, file/image→file field, *id→dropdown from its table.
views/posts/index.php overrides the built-in page. The folder is always the plural of the table.
hasMany(Player) → team_id on players; belongsToMany(Permission) → alphabetical pivot permission_role. No key names to write.
The presence of App\Policies\BookPolicy guards CRUD automatically; without a policy, ->public() is required to expose it.
Widdx does not depend on Composer. vendor/ is gitignored and rebuilt on first install; no composer require to add a feature.
Everything below is in the repository, documented in the introduction and covered by the test suite.
Resource controller with public(), auth(), guarded() and owned() — one line covers most CRUDs.
authRoutes() wiring sign-up, sign-in, sign-out, recovery, reset, verification and throttling.
make:crud generating the model, migration, routes and typed form from a single signature.
Built-in RTL: APP_LOCALE=ar flips the built-in pages to dir="rtl" with no per-page work.
Storage, mail, queue, cache and validation — each with one readable face, no hidden configuration layer.
A binding agent contract (AGENTS.md + .agents/) any AI tool is reviewed against.
Widdx is the framework WIDDX Studio builds and maintains. It is not for sale. The latest tagged release is v0.3.8. The reference command for measured behaviour is php widdx test.
The complete reference, the curriculum and the AI guide are available in the repository:
From a single landing page to a full business platform — tell WIDDX what the system needs to do.