URL view helper for Aura Router

0.1.0 2016-11-15 20:04 UTC

This package is auto-updated.

Last update: 2020-05-25 23:10:15 UTC


View helper for Aura Router

Latest version Build Status Coverage Status Quality Score


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

// add the helper to aura html helpers
$helpers->set('url', [$urlHelperContainer, 'getHelper']);