Download the PHP package spiffy/spiffy-navigation without Composer
On this page you can find all versions of the php package spiffy/spiffy-navigation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spiffy/spiffy-navigation
More information about spiffy/spiffy-navigation
Files in spiffy/spiffy-navigation
Package spiffy-navigation
Short Description Zend Framework 2 Module that aims to replace Zend\Navigation
License
Homepage http://www.github.com/spiffyjr/spiffy-navigation/
Informations about the package spiffy-navigation
SpiffyNavigation Module for Zend Framework 2
SpiffyNavigation is a navigation module for ZF2 intended to be a replacement for Zend\Navigation when ZF3 is able to break BC.
Project Status
Requirements
- PHP 5.3 or higher
- Zend Framework 2
Installation
Installation of SpiffyNavigation uses composer. For composer documentation, please refer to getcomposer.org.
Installation steps
cd my/project/directory
-
create a
composer.json
file with following contents: - install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) - run
php composer.phar install
- open
my/project/directory/configs/application.config.php
and add the following key to yourmodules
:
Providers
Providers let you create your navigation containers from various sources. The following providers are included out of the box:
- array: builds a container from an array.
- config: builds a container from a file using Zend\Config.
- json: builds a container from a json string.
Creating containers
Creating navigation containers is done via the module configuration using the spiffy_navigation
key. The containers
array can take two types of values: a string and an array. If you pass a string the container will be created from a
provider matching the name if it exists, pulled from the service manager or instantiated directly. If you pass an array
the container is built using the ContainerFactory::create() method.
Page options
- label: The label for the element in view helpers.
- anchor: An optional anchor to append to the uri.
- route: The route to use for assembling the uri.
- uri: The direct uri to use (use instead of route).
- params: Optional params to include during route assembly.
- query_params: Optional params to include in the query string during assembly.
Rbac specific options
- role: required The role to use to determine if access is granted.
- permission: required The permission to use to determine if access is granted.
- assertion: The assertion to use to determine if access is granted.
Using the view helpers
Once you have created a container using a view helper is as simple as putting:
NavigationMenu
Quick Start
Options
- ulClass: The class to use when generating the ul.
- minDepth: Minimum render depth.
- maxDepth: Maximum render depth.
- activeClass: Active class to use for the active element.
All versions of spiffy-navigation with dependencies
zendframework/zend-console Version ~2.2
zendframework/zend-eventmanager Version ~2.2
zendframework/zend-form Version ~2.2
zendframework/zend-modulemanager Version ~2.2
zendframework/zend-mvc Version ~2.2
zendframework/zend-permissions-acl Version ~2.2
zendframework/zend-permissions-rbac Version ~2.2
zendframework/zend-serializer Version ~2.2
zendframework/zend-servicemanager Version ~2.2
zendframework/zend-stdlib Version ~2.2
zendframework/zend-uri Version ~2.2
zendframework/zend-view Version ~2.2