jnjxp / urlhelper
URL view helper for Aura Router
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jnjxp/urlhelper
Requires
- aura/router: ^3.0
- psr/http-message: ~1.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-26 10:45:05 UTC
README
View helper for Aura Router
<?php use Jnjxp\Urlhelper; // Pass an aura router container to the urlHelperContainer $urlHelperContainer = new UrlHelper\Container($routerContainer); // add the middleware to your stack to have the request injected // probably want to add it quite late $stack->middle($urlHelperContainer->getMiddleware()); // add the helper to aura html helpers $helpers->set('url', [$urlHelperContainer, 'getHelper']);