PHPackages                             daxslab/yii2-website-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. daxslab/yii2-website-module

ActiveYii2-extension

daxslab/yii2-website-module
===========================

Yii2 module to manage website content. Kind of a CMS...

1.0.15(5y ago)525711MITPHP

Since Nov 22Pushed 4y ago2 watchersCompare

[ Source](https://github.com/daxslab/yii2-website-module)[ Packagist](https://packagist.org/packages/daxslab/yii2-website-module)[ RSS](/packages/daxslab-yii2-website-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (13)Versions (18)Used By (1)

Yii2 Website Module
===================

[](#yii2-website-module)

[![Latest Stable Version](https://camo.githubusercontent.com/0877899321a028114ebddd5cd46a2aebeef0627f9a50fc8e4e9911894079a793/68747470733a2f2f706f7365722e707567782e6f72672f646178736c61622f796969322d776562736974652d6d6f64756c652f762f737461626c652e737667)](https://packagist.org/packages/daxslab/yii2-website-module)[![Total Downloads](https://camo.githubusercontent.com/e0be92521424a204e290b960eb1553831ab2efb582fc4ce833fdea733f882e1f/68747470733a2f2f706f7365722e707567782e6f72672f646178736c61622f796969322d776562736974652d6d6f64756c652f646f776e6c6f616473)](https://packagist.org/packages/daxslab/yii2-website-module)[![Latest Unstable Version](https://camo.githubusercontent.com/04e92fe6e6488771374e6a19990d9084ac03a0fb9dbd8f0d9703c447fe0caac3/68747470733a2f2f706f7365722e707567782e6f72672f646178736c61622f796969322d776562736974652d6d6f64756c652f762f756e737461626c652e737667)](https://packagist.org/packages/daxslab/yii2-website-module)[![License](https://camo.githubusercontent.com/34649bcd4bbd9a8eb38fa20d00fc3e36f90c4226bd21d786cf8937ebd2850804/68747470733a2f2f706f7365722e707567782e6f72672f646178736c61622f796969322d776562736974652d6d6f64756c652f6c6963656e73652e737667)](https://packagist.org/packages/daxslab/yii2-website-module)

Yii2 module to implement a website.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist daxslab/yii2-website-module "*"

```

or add

```
"daxslab/yii2-website-module": "*"

```

to the require section of your `composer.json` file.

Introduction
------------

[](#introduction)

Website tries to be an unobstrusive CMS without limiting the capabilities of Yii2 framework as development platform. The idea is that you can add website features to an existing application, or just create a website based on Yii2 framework.

The idea behind **Website** module is a bit different compared with other CMS. While generally pages, posts and categories are managed, in **Website** everything is a page and every page can have children pages so,

- a page without subpages can be considered a regular *page*
- a page with subpages can be considered a *category*
- a subpage can be considered a *post*

The resulting tree can then have wathever depth is required.

Besides pages, **Website** also manages Media: any attached file that can be referenced in the resulting website. The module handles the uploading process.

Also you can manage Menus with **Website** module. For every menu you can create menu items and this than be pointed to any URL. When creating a menu item you either type the label and URL, or select from existing pages.

Configuration
-------------

[](#configuration)

Website is meant to be used with the Yii2 Advanced Application template. Some modification could be done to make it usable with basic template.

### Module

[](#module)

First configure the module for all the apps in common/config/main.php

```
//...
'modules' => [
	'website' => [
		'class' => daxslab\website\Module::class,
		'languages' => ['en', 'es', 'it'],
		'token' => 'some-string-here'
	]
]
//...

```

Here notice the specified attributes:

- languages: array with the languages that will be active for creating content
- token: string identifying every website in case that several are used.

### Database

[](#database)

It is assumed that you are using some database and that the connection to it it's already set. Configure migrations in console/config/main.php

```
//...
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'daxslab\website\migrations',
        ]
    ],
],
//...

```

### Controllers

[](#controllers)

Configure controllers namespaces for the module in each app. Let's start with frontend/config/main.php

```
//...
'modules' => [
	'website' => [
		'controllerNamespace' => 'daxslab\website\controllers\frontend'
	]
]
//...

```

And similar for backend/config/main.php

```
//...
'modules' => [
	'website' => [
		'controllerNamespace' => 'daxslab\website\controllers\backend'
	]

]
//...

```

Usage
-----

[](#usage)

The module provides two sets of controllers: frontend and backend.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% 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 ~31 days

Recently: every ~46 days

Total

16

Last Release

1890d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13596248?v=4)[Gabriel Alejandro López López](/maintainers/glpzzz)[@glpzzz](https://github.com/glpzzz)

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

---

Top Contributors

[![glpzzz](https://avatars.githubusercontent.com/u/13596248?v=4)](https://github.com/glpzzz "glpzzz (39 commits)")[![cccaballero](https://avatars.githubusercontent.com/u/3727802?v=4)](https://github.com/cccaballero "cccaballero (2 commits)")

---

Tags

cmscontentmodulepageswebsiteyii2websitecmsyii2module

### Embed Badge

![Health badge](/badges/daxslab-yii2-website-module/health.svg)

```
[![Health](https://phpackages.com/badges/daxslab-yii2-website-module/health.svg)](https://phpackages.com/packages/daxslab-yii2-website-module)
```

###  Alternatives

[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)[luyadev/luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.

8086.9k2](/packages/luyadev-luya)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[luyadev/luya-module-cms

The LUYA CMS module provides a full functional Content Management System for adding contents based on blocks.

32176.1k18](/packages/luyadev-luya-module-cms)[luyadev/luya-bootstrap4

Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.

1843.9k3](/packages/luyadev-luya-bootstrap4)[skeeks/cms-shop

Интернет магазин для SkeekS CMS

145.5k20](/packages/skeeks-cms-shop)

PHPackages © 2026

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