PHPackages                             riddlestone/brokkr-portals - 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. riddlestone/brokkr-portals

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

riddlestone/brokkr-portals
==========================

A Laminas module to pull configuration together for portals, such as a public portal, an admin portal, etc.

v3.1.0(5y ago)0681BSD-3-ClausePHPPHP ^7.2|^8.0

Since Feb 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/riddlestone/brokkr-portals)[ Packagist](https://packagist.org/packages/riddlestone/brokkr-portals)[ Docs](https://github.com/riddlestone/brokkr-portals)[ RSS](/packages/riddlestone-brokkr-portals/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (6)Versions (6)Used By (1)

[![Riddlestone](https://avatars0.githubusercontent.com/u/57593244?s=30&v=4)](https://github.com/riddlestone) Brokkr-Portals
===========================================================================================================================

[](#-brokkr-portals)

A [Laminas](https://github.com/laminas) module to pull configuration together for portals, such as a public portal, an admin portal, etc.

Adding Configuration
--------------------

[](#adding-configuration)

To add information about a portal, add it to a module configuration file under `portals.{portal_name}`:

```
return [
    'portals' => [
        'main' => [
            'layout' => 'main.layout',
            'css' => [
                __DIR__ . '/../css/styles.css',
            ],
            'js' => [
                __DIR__ . '/../js/scripts.js',
            ],
        ],
    ],
];
```

Portals also supports lazy configuration loading through PortalConfigProviders:

```
return [
    'portal_manager' => [
        'provider_names' => [
            'My\\Portal\\Config\\Provider',
        ],
        'factories' => [
            'My\\Portal\\Config\\Provider' => 'My\\Portal\\Config\\ProviderFactory',
        ],
    ],
];
```

Portal Features
---------------

[](#portal-features)

Features allow you to group portal configuration together, and assign it to a portal separately. This might be usefuuul if some modular functionality requires multiple css/js files, but the module doesn't know which portals it will be used in:

```
return [
    'portals' => [
        'main' => [
            'features' => [
                'some-functionality',
            ],
        ],
    ],
    'portal_features' => [
        'some-functionality' => [
            'css' => [
                __DIR__ . '/../css/styles.css',
            ],
            'js' => [
                __DIR__ . '/../js/scripts.js',
            ],
        ],
    ],
];
```

Here the module can define the js and css required for portal\_features/some-functionality, and the project can declare that portals/main uses it.

Getting the Portal Manager
--------------------------

[](#getting-the-portal-manager)

```
/** @var \Laminas\ServiceManager\ServiceManager $serviceManager */

$portalManager = $serviceManager->get(\Riddlestone\Brokkr\Portals\PortalManager::class);
```

Getting Configuration
---------------------

[](#getting-configuration)

```
/** @var \Riddlestone\Brokkr\Portals\PortalManager $portalManager */

# get a list of portals
$portals = $portalManager->getPortalNames();

# set the current portal
$portalManager->setCurrentPortalName('main');

# get the current portal name
$portalName = $portalManager->getCurrentPortalName();

# check a portal has config
$hasConfig = $portalManager->hasPortalConfig('main', 'css');

# check the current portal has config
$hasConfig = $portalManager->hasCurrentPortalConfig('css');

# get the config for a portal
$portalConfig = $portalManager->getPortalConfig('main', 'css');

# get the config for the current portal
$portalConfig = $portalManager->getCurrentPortalConfig('css');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~87 days

Total

5

Last Release

1941d ago

Major Versions

v1.1.0 → v2.0.02020-02-05

v2.1.0 → v3.0.02020-04-05

PHP version history (2 changes)v1.1.0PHP ^7.2

v3.1.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f29c5f34a3e241347d2e70d10d3d15a076042227b72bd0bb45b664da38da4e80?d=identicon)[ariddlestone](/maintainers/ariddlestone)

---

Top Contributors

[![ariddlestone](https://avatars.githubusercontent.com/u/1448695?v=4)](https://github.com/ariddlestone "ariddlestone (23 commits)")

---

Tags

brokkrconfiglaminaslaminasconfigbrokkr

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/riddlestone-brokkr-portals/health.svg)

```
[![Health](https://phpackages.com/badges/riddlestone-brokkr-portals/health.svg)](https://phpackages.com/packages/riddlestone-brokkr-portals)
```

###  Alternatives

[laminas/laminas-paginator

Paginate collections of data from arbitrary sources

245.7M84](/packages/laminas-laminas-paginator)[laminas/laminas-skeleton-installer

Installer plugin for Laminas skeleton application

22366.5k9](/packages/laminas-laminas-skeleton-installer)[neilime/twbs-helper-module

Laminas (formerly Zend Framework) module for easy integration of Twitter Bootstrap

2198.7k](/packages/neilime-twbs-helper-module)

PHPackages © 2026

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