PHPackages                             mainio/c5-controller-extensions - 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. [Framework](/categories/framework)
4. /
5. mainio/c5-controller-extensions

AbandonedArchivedLibrary[Framework](/categories/framework)

mainio/c5-controller-extensions
===============================

Provides some useful extensions for concrete5 controllers.

v0.2(10y ago)01171MITPHPPHP &gt;=5.4.0

Since Jul 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mainio/c5pkg_controller_extensions)[ Packagist](https://packagist.org/packages/mainio/c5-controller-extensions)[ Docs](http://www.mainiotech.fi)[ RSS](/packages/mainio-c5-controller-extensions/feed)WikiDiscussions master Synced today

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

Controller extensions for concrete5
===================================

[](#controller-extensions-for-concrete5)

This is a composer package that provides some useful features to be used in concrete5 controllers. This provides the features as

In order to use these extensions, you will need to be running PHP 5.4 or newer in order to take advantage of the traits provided by this package.

How to use?
-----------

[](#how-to-use)

Add a composer.json file into your concrete5 package's directory. Into that file, add the following content:

```
{
    "require": {
        "mainio/c5-controller-extensions": "*"
    }
}

```

And then run `composer install` in the same directory. After this, add the following on top of your package controller (after the namespace definition):

```
include(dirname(__FILE__) . '/vendor/autoload.php');
```

After this you can use the extension traits in your controllers as follows:

```
namespace Concrete\Package\YourPackage\Controller\SinglePage\Dashboard\YourPackage;

defined('C5_EXECUTE') or die("Access Denied.");

// Choose one of these (depending on your use case)
use \Mainio\C5\Twig\Page\Controller\DashboardPageController;
// OR
use \Concrete\Core\Page\Controller\DashboardPageController;

class YourPage extends DashboardPageController
{

    use \Mainio\C5\ControllerExtensions\Controller\Extension\WhatEverExtension;

}
```

Currently the following extensions are provided by this package:

- \\Mainio\\C5\\ControllerExtensions\\Controller\\Extension\\DoctrineEntitiesExtension
- \\Mainio\\C5\\ControllerExtensions\\Controller\\Extension\\FlashMessagesExtension

License
-------

[](#license)

Licensed under the MIT license. See LICENSE for more information.

Copyright (c) 2015 Mainio Tech Ltd.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~314 days

Total

2

Last Release

3676d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/864340?v=4)[Antti Hukkanen](/maintainers/ahukkanen)[@ahukkanen](https://github.com/ahukkanen)

---

Top Contributors

[![ahukkanen](https://avatars.githubusercontent.com/u/864340?v=4)](https://github.com/ahukkanen "ahukkanen (3 commits)")

---

Tags

concrete5extensionsextensioncontroller

### Embed Badge

![Health badge](/badges/mainio-c5-controller-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/mainio-c5-controller-extensions/health.svg)](https://phpackages.com/packages/mainio-c5-controller-extensions)
```

PHPackages © 2026

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