You’re reading the v0.1 development preview. APIs may change.
~ 1 min readUpdated 2026-10-30

Build an entity-backed JSON response

Prerequisite: database lesson and migrations. Goal: combine real entity relationships, an explicit JSON resource and a collection calculation.

Run the catalogue below. Open its Entities and ProductResource source files. The query fetch-joins categories; the resource excludes the internal note. Change the two fixture quantities and the expected total together, then rerun.

php vendor/elang/framework/examples/orm-catalog/run.php

You are done when the result is correct and no private field appears in the API output. For a persistent application, write a reviewed migration and add authentication and ownership constraints before handling writes.

Next step

Need a hand?

Check the troubleshooting guide, look up a term in the glossary, or work through the complete task board project.

Search Elang documentation

Start typing to find your next step.