Skip to content

Facades and helpers

Streams, Assets, Images, Applications facades and global helpers.

Core registers facades and global helpers for common stream operations.

Facades

Facade Accessor Purpose
Streams streams Stream manager, make, load
Assets assets Asset registry
Images images Image alterations
Includes includes View include slots
Applications applications Multi-app activation
Addons addons Addon registry

Global helpers

Defined in src/helpers.php:

stream('posts');           // Stream instance
entries('posts');          // Criteria
repository('posts');       // Repository
html_attributes($attrs);   // HTML attribute string
response_time();           // Debug helper
memory_usage();            // Debug helper

Prefer Streams::make(), Streams::entries(), and Streams::repository() when facades are not imported.

Related