You are viewing beta documentation for Hyper 3.x. View the latest stable version (2.x) →

Developers

Creating fields and links in PHP, plus performance patterns for element queries.

Creating Links Programmatically

Create Link objects and assign them to Hyper fields when building custom integrations or element saves. Always pass an array of links.

Creating Hyper Fields Programmatically

Seed Hyper fields in content migrations with the correct linkTypes array shape (type, handle, label).

Performance

Batch hydration, with(['field.linkedElements…']), and craft.hyper.getRelatedElements() — checklist linking to eager loading and reverse relations.