PHPackages                             tccltd/tcc-abstract-module - 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. tccltd/tcc-abstract-module

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

tccltd/tcc-abstract-module
==========================

TccAbstractModule Package

1.0.0(12y ago)12082[1 issues](https://github.com/tccltd/TccAbstractModule/issues)[1 PRs](https://github.com/tccltd/TccAbstractModule/pulls)PHPPHP &gt;=5.3.0

Since Oct 25Pushed 9y ago3 watchersCompare

[ Source](https://github.com/tccltd/TccAbstractModule)[ Packagist](https://packagist.org/packages/tccltd/tcc-abstract-module)[ RSS](/packages/tccltd-tcc-abstract-module/feed)WikiDiscussions develop Synced 1mo ago

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

TccAbstractModule
=================

[](#tccabstractmodule)

Provides an AbstractModule class that can be extended by individual Module classes to automatically implement functionality such as autoloading and configuration.

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

[](#installation)

Simply add **tccltd/tcc-abstract-module** to your composer.json.

Usage
-----

[](#usage)

When creating a new module, extend **TccAbstractModule\\Module\\AbstractModule** in your Module.php.

---

**PHP 5.3 NOTE**: If you are *not* using PHP 5.4 then you will need to extend **TccAbstractModuleNoTraits** instead of **TccAbstractModule**. The functionality provided is identical.

---

For simpler modules, you may well find that this is all you need:

```
namespace MyModule;

use TccAbstractModule\Module\AbstractModule;

class Module extends AbstractModule
{
}

```

The abstract module configures the following behaviour automatically:

1. **Autoloading:** The classmap defined in *./autoload\_classmap.php* is used in the first instance, falling back to a standard PSR-0 compatible autoloader serving files from *./src/MyModule/*.
2. **Module Configuration:** All files in *./config/* matching the format *module.config{,.\*}.php* will be loaded. As a matter of good practice, you should separate your routes into *module.config.routes.php*.
3. **Service Configuration:** Where previously you would have defined service manager invokables, services, factories, aliases, initializers and abstract\_factories in the getServiceConfig() function of your Module.php, these should now be defined in *./config/service/service.config.php*. The format is the same. Note that all files in *./config/service/* matching the format *service.config{,.\*}.php* will be loaded, should you wish to further subdivide your service configuration.
4. **Controller Configuration:** Where previously you would have defined controller manager invokables, services, factories, aliases, initializers and abstract\_factories in the getControllerConfig() function of your Module.php, these should now be defined in *./config/service/controller.config.php*. The format is the same. Note that all files in *./config/service/* matching the format *controller.config{,.\*}.php* will be loaded, should you wish to further subdivide your controller configuration.
5. **View Helper Configuration:** Where previously you would have defined view helper manager invokables, services, factories, aliases, initializers and abstract\_factories in the getViewHelperConfig() function of your Module.php, these should now be defined in *./config/service/viewhelper.config.php*. The format is the same. Note that all files in *./config/service/* matching the format *service.config{,.\*}.php* will be loaded, should you wish to further subdivide your view helper configuration.

A typical file structure (focusing on the aspects related to this module) might be as follows:

```
module/
  MyModule/
    config/
      service/
        controller.config.php
        service.config.php
        viewhelper.config.php
      module.config.php
      module.config.routes.php
  autoload_classmap.php
  Module.php

```

Overriding
----------

[](#overriding)

Should you wish to modify the behaviour of the AbstractModule, you can do so by either overriding in your individual Module.php files, or you can extend the entire module and create your own AbstractModule. If you have a suggestion that might benefit all users of this module, please do feel free to suggest it, of course!

Traits
------

[](#traits)

TccAbstractModule is composed of traits. This means that you can, should you wish, cherry-pick the functionality that you would like to use. In this instance you would *not* override AbstractModule. Instead, you would *use* the relevant traits within your own Module class. Note that you will need to *use* *ClassDirTrait* in order to use any of the other traits, and *ClassNamespaceTrait* in order to use *AutoloaderProviderDefaultTrait*.

It is anticipated that most users will *not* need to cherry-pick.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

4440d ago

Major Versions

0.0.3 → 1.0.02014-03-12

### Community

Maintainers

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

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

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

---

Top Contributors

[![mtudor](https://avatars.githubusercontent.com/u/1683723?v=4)](https://github.com/mtudor "mtudor (13 commits)")

### Embed Badge

![Health badge](/badges/tccltd-tcc-abstract-module/health.svg)

```
[![Health](https://phpackages.com/badges/tccltd-tcc-abstract-module/health.svg)](https://phpackages.com/packages/tccltd-tcc-abstract-module)
```

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

273158.4k](/packages/ozdemir-datatables)[that0n3guy/transliteration

Transliteration provides one-way string transliteration (romanization) and cleans text by replacing unwanted characters.

1296.5k4](/packages/that0n3guy-transliteration)

PHPackages © 2026

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