PHPackages                             ndoubismarck/cakephp-modules - 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. ndoubismarck/cakephp-modules

ActiveLibrary[Framework](/categories/framework)

ndoubismarck/cakephp-modules
============================

Module support plugin for CakePHP

1.0.0(4y ago)013MITPHPPHP &gt;=7.2

Since Mar 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ndoubismarck/cakephp-modules)[ Packagist](https://packagist.org/packages/ndoubismarck/cakephp-modules)[ RSS](/packages/ndoubismarck-cakephp-modules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

CakePHP Modules
===============

[](#cakephp-modules)

This CakePHP plugin intends to provide a framework around modules. Modules are a set of reusable classes that can be accessed from anywhere within the application. The idea is to improve maintainability and keep code clean and modular.

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [Composer](https://getcomposer.org):

```
composer require ndoubismarck/cakephp-modules

```

Load the plugin by adding the following statement in your project's `src/Application.php`:

```
public function bootstrap(): void
{
    parent::bootstrap();
    $this->addPlugin('Modules');
}
```

Baking modules
--------------

[](#baking-modules)

Bake a module by executing:

```
bin/cake bake module Example

```

This will create a module named `Example` in `modules/Example`

Loading modules
---------------

[](#loading-modules)

The `ModuleAwareTrait` provides functionality for loading module classes as properties of the host object

For example:

1. In app controller

```
use Cake\Controller\Controller;
use Modules\ModuleAwareTrait;

/**
 * @property ExampleModule $ExampleModule
 */
class AppController extends Controller
{
    use ModuleAwareTrait;

    public function initialize(): void
    {
        $this->loadModule('Example');
    }
}
```

2. In any other class

```
use Modules\ModuleAwareTrait;

/**
 * @property ExampleModule $ExampleModule
 */
class MyClass
{
    use ModuleAwareTrait;

    public function __construct()
    {
        $this->loadModule('Example');
    }
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2abf6cdb350b487cff3c9ce8e3c17e91aef9105915d5ef007a731fd36999d66c?d=identicon)[ndoubismarck](/maintainers/ndoubismarck)

---

Top Contributors

[![ndoubismarck](https://avatars.githubusercontent.com/u/33604641?v=4)](https://github.com/ndoubismarck "ndoubismarck (1 commits)")

---

Tags

cakephpmodulemodules

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ndoubismarck-cakephp-modules/health.svg)

```
[![Health](https://phpackages.com/badges/ndoubismarck-cakephp-modules/health.svg)](https://phpackages.com/packages/ndoubismarck-cakephp-modules)
```

###  Alternatives

[nwidart/laravel-modules

Laravel Module management

6.1k14.6M274](/packages/nwidart-laravel-modules)[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[pingpong/modules

Laravel Modules

592188.7k13](/packages/pingpong-modules)[artem-schander/l5-modular

Modular pattern generator for Laravel

223235.5k](/packages/artem-schander-l5-modular)[cakephp/queue

Queue plugin for CakePHP

36257.9k12](/packages/cakephp-queue)

PHPackages © 2026

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