PHPackages                             startpl/t2cms-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. startpl/t2cms-module

ActiveT2cms-module[Utility &amp; Helpers](/categories/utility)

startpl/t2cms-module
====================

The module example for t2cms

1.0.0(6y ago)081Apache-2.0PHP

Since Apr 14Pushed 6y ago2 watchersCompare

[ Source](https://github.com/startpl/t2cms-module)[ Packagist](https://packagist.org/packages/startpl/t2cms-module)[ RSS](/packages/startpl-t2cms-module/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (1)

The Module Example for T2cms
============================

[](#the-module-example-for-t2cms)

You can use this module as template

---

### Module development features

[](#module-development-features)

File structure:

```
my-module
├─ backend
|  ├── Module.php
|  └── config
|      └── main.php
├── frontend
|   ├── Module.php
|   └── config
|       └── main.php
├── common
|   ├── Module.php
|   └── config
|       └── main.php
├── module_info.php
└── ModuleInstall.php

```

Each part of your module (backend/frontend/common) is a regular yii2 module.

**All parts are optional**, you can only implement a backend or frontend, or only a common.

#### if you use composer:

[](#if-you-use-composer)

- Your `composer.json` must contain `type:  "t2cms-module"`

---

File Descriptions
-----------------

[](#file-descriptions)

### module\_info.php

[](#module_infophp)

```
