jnjxp/urlhelper

URL view helper for Aura Router

0.1.0 2016-11-15 20:04 UTC

This package is auto-updated.

Last update: 2024-10-26 08:43:10 UTC


README

View helper for Aura Router

Latest version Build Status Coverage Status Quality Score

<?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']);