PHPackages                             costsrl/cost-acl-navigation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. costsrl/cost-acl-navigation

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

costsrl/cost-acl-navigation
===========================

Navigation based on Laminas

v1.0.0(3y ago)011BSD-3-ClausePHPPHP &gt;=7.0

Since Mar 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/costsrl/cost-acl-navigation)[ Packagist](https://packagist.org/packages/costsrl/cost-acl-navigation)[ Docs](http://www.cost.it)[ RSS](/packages/costsrl-cost-acl-navigation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CostAclNavigation
=================

[](#costaclnavigation)

**What is CostAclNavigation?**

CsnNavigation is a Module for Navigation based on Laminas Framework 2 with Acl

**What exactly does CostNavigation?**

Installation
============

[](#installation)

Requiremnts "CostAuthorization"

Go to your application configuration in `./config/application.config.php`and add 'CostAclNavigation'. An example application configuration could look like the following:

```
'modules' => array(
    'Application',
    'CostAuthorization',
    'CostNavigation'
)

```

Navigation configuration
========================

[](#navigation-configuration)

Create novigo folder under vendor directory Copy or Clone Module under novigo directory Copy `./vendor/cost/cost-acl-navigation/config/navigation.global.php.dist` to `./config/autoload/navigation.global.php` and edit.

open composer.json and add under auotload key

"autoload" : { "psr-4" : { "CostAclNavigation" : "vendor/cost/cost-acl-navigation/src", }

```
or
 "repositories": [
        {
            "type": "vcs",
            "url": "http://git.cost.it/cost/cost-acl-navigation.git"
        }
    ]

Show navigation
=============
Add this somewhere in your layout `./module/Application/view/layout/layout.phtml` :

```

navigation('navigation\_default'); $containers = $navHelper-&gt;getContainer(); $acl = $navHelper-&gt;getAcl(); $role = $navHelper-&gt;getRole(); foreach($containers-&gt;getPages() as $page) { if(! $navHelper-&gt;accept($page)) continue; $class = ""; if ($page-&gt;isActive() &amp;&amp; $navHelper-&gt;accept($page)) { $class = "active"; } ```
              if(count($page)) {
                   // if there are subpages we render the menu a bit different
                   $label  = $page->getLabel();
                   $label  = $this->translate($label); // translated label
                   $label  = $this->escapehtml($label); // sanitized label
                   printf(''."\n",($class?' '.$class:''));
                   printf('%s'."\n",
                                             $page->getHref(),
                                             $label);
                  echo ''."\n";
                  foreach($page as $subPage) {
                               if(!$navHelper->accept($subPage)) {
                                       	continue;
                               }
                               printf("%s\n",$navHelper->htmlify($subPage));
                                                        }
                           echo "\n";
             }
              else {
               printf("%s\n",$class,$navHelper->htmlify($page));
         }
   }
    ?>

```

```` doctrine generate entity

```
1) ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:convert-mapping --namespace="CostAclNavigation\\Model\\Entity\\" --filter='Menus' --force  --from-database annotation ./vendor/cost/cost-acl-navigation/src/

2) ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:validate-schema

3) 	./vendor/doctrine/doctrine-module/bin/doctrine-module orm:generate-entities --generate-annotations=true --generate-methods=true ./vendor/novigo/Cost-acl-navigation/src

doctrine create update databse from  entity
4) ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:update  --dump-sql

5) ./vendor/doctrine/doctrine-module/bin/doctrine-module schema-tool:update --force

```

```

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c60285d97462c4a75336d0a8b70c0235c74faba8e37de102a9f3e530b2bbfae?d=identicon)[costsrl](/maintainers/costsrl)

---

Tags

zf3cost-navigation

### Embed Badge

![Health badge](/badges/costsrl-cost-acl-navigation/health.svg)

```
[![Health](https://phpackages.com/badges/costsrl-cost-acl-navigation/health.svg)](https://phpackages.com/packages/costsrl-cost-acl-navigation)
```

###  Alternatives

[spomky-labs/cbor-php

CBOR Encoder/Decoder for PHP

576.4M30](/packages/spomky-labs-cbor-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
