PHPackages                             shoxabbos/yii2-localpages - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. shoxabbos/yii2-localpages

ActiveYii2-extension[Localization &amp; i18n](/categories/localization)

shoxabbos/yii2-localpages
=========================

Create local pages

v2.1.0(8y ago)1372[2 issues](https://github.com/Shoxabbos/yii2-localpages/issues)MITPHP

Since Aug 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Shoxabbos/yii2-localpages)[ Packagist](https://packagist.org/packages/shoxabbos/yii2-localpages)[ RSS](/packages/shoxabbos-yii2-localpages/feed)WikiDiscussions master Synced 2w ago

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

Create multi language static pages
==================================

[](#create-multi-language-static-pages)

Create multi language static pages

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist shoxabbos/yii2-localpages "*"

```

or add

```
"shoxabbos/yii2-localpages": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Run migrate

```
php yii migrate --migrationPath=@vendor/shoxabbos/yii2-localpages/migrations
```

Add module to web/config

```
'modules' => [
    'pages' => [
        'class' => '\shoxabbos\localpages\Module',
        'langs' => [
            'ru' => 'Russian',
            'en' => 'English',
        ],
        'defaultRoute' => 'page',
        'defaultLang' => 'ru',
        'layoutPath' => '@app/path/to/layouts',
        'layout' => 'admin',
        'pagesTableName' => 'pages',
        'pagesContentTableName' => 'page_contents',
    ],
]
```

Add action to your controller (viewFile: your view file for showing pages)

```
public function actions()
{
    return [
        'page' => [
            'class' => 'shoxabbos\localpages\actions\ViewAction',
            'viewFile' => 'page'
        ],
    ];
}
```

**For add news**:

**For see created your post**:

**If you want a nice url you can set up the URL manager**:

```
'page/' => 'site/page'
```

**After that, you can open the pages as**:

Before:

After:

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

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

Total

6

Last Release

3226d ago

Major Versions

v1.2 → v2.02017-08-18

### Community

Maintainers

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

---

Top Contributors

[![shoxabbos](https://avatars.githubusercontent.com/u/8403807?v=4)](https://github.com/shoxabbos "shoxabbos (19 commits)")

---

Tags

yii2extensionlocalpages

### Embed Badge

![Health badge](/badges/shoxabbos-yii2-localpages/health.svg)

```
[![Health](https://phpackages.com/badges/shoxabbos-yii2-localpages/health.svg)](https://phpackages.com/packages/shoxabbos-yii2-localpages)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227597.2k13](/packages/lajax-yii2-translate-manager)[omgdef/yii2-multilingual-behavior

Port of the yii-multilingual-behavior for yii

143179.8k9](/packages/omgdef-yii2-multilingual-behavior)[lajax/yii2-language-picker

Yii2 Language Picker Widget

41238.1k3](/packages/lajax-yii2-language-picker)[lav45/yii2-translated-behavior

This extension allows you to quickly and simple enough to add translations for any ActiveRecord models.

3742.5k](/packages/lav45-yii2-translated-behavior)[geertw/yii2-translatable-url-rule

A custom URL rule class for Yii 2 which allows to create translated URL rules

1421.4k](/packages/geertw-yii2-translatable-url-rule)

PHPackages © 2026

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