PHPackages                             fgh151/yii2-view-pages - 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. [Templating &amp; Views](/categories/templating)
4. /
5. fgh151/yii2-view-pages

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

fgh151/yii2-view-pages
======================

Yii2 view pages

v0.1(9y ago)06MITPHP

Since Apr 4Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 view pages
===============

[](#yii2-view-pages)

Yii2 view 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 fgh151/yii2-view-pages "*"

```

or add

```
"fgh151/yii2-view-pages": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply add it in your config by : Basic `config/web.php`

Advanced `[backend|frontend|common]/config/main.php`

```
    'modules' => [
        'pages' => [
            'class' => 'fgh151\vpages\Module',
        ],
        //...
    ]
```

\###Example usage

Create php file in @webroot directory or sub folder, for example

```
Yii::getAlias('@webroot').'/catalog/index.php';
```

Now you have urls:

- `?r=pages/page/view&page=catalog/index.php`
- `?r=pages/page/view&page=catalog/`
- `?r=pages/page/view&page=catalog`

For SEF url you may add rule to config:

```
 'urlManager' => [
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    'rules' => [
        '' => 'pages/page/view',
    ],
],
```

If there is files `style.css` or `script.js` in view dir (`/catalog/` as example above) they will be automatically added.

RBAC
----

[](#rbac)

You can use RBAC with module. Simply add it in your config:

```

        'modules'    => [
             'pages' => [
                 'class' => 'fgh151\vpages\Module',
                 'as access' => [
                     'class' => 'yii\filters\AccessControl',
                     'rules' => [
                         [
                             'allow' => true,
                             'roles' => ['admin'],
                         ]
                     ]
                 ]
             ]
            ...
            ...
        ],

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3325d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/645524?v=4)[Fedor Gorsky](/maintainers/fgh151)[@fgh151](https://github.com/fgh151)

---

Top Contributors

[![fgh151](https://avatars.githubusercontent.com/u/645524?v=4)](https://github.com/fgh151 "fgh151 (5 commits)")

---

Tags

viewyii2extensionpages

### Embed Badge

![Health badge](/badges/fgh151-yii2-view-pages/health.svg)

```
[![Health](https://phpackages.com/badges/fgh151-yii2-view-pages/health.svg)](https://phpackages.com/packages/fgh151-yii2-view-pages)
```

###  Alternatives

[marekpetras/yii2-calendarview-widget

CalendarView widget for Yii 2 Framework.

2229.1k](/packages/marekpetras-yii2-calendarview-widget)[ogheo/yii2-htmlcompress

Compress HTML output into a single line

20184.4k1](/packages/ogheo-yii2-htmlcompress)[raoul2000/yii2-workflow-view

A simple widget to display your workflows

1638.8k20](/packages/raoul2000-yii2-workflow-view)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.1k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

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