PHPackages                             sibds/yii2-enterprise - 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. [Framework](/categories/framework)
4. /
5. sibds/yii2-enterprise

ActiveProject[Framework](/categories/framework)

sibds/yii2-enterprise
=====================

Yii 2 Enterprise Application Template

81058PHP

Since Mar 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sibds/yii2-enterprise)[ Packagist](https://packagist.org/packages/sibds/yii2-enterprise)[ RSS](/packages/sibds-yii2-enterprise/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Enterprise Application Template
====================================

[](#yii2-enterprise-application-template)

Yii 2 Enterprise Application Template is a skeleton Yii 2 application best for rapidly creating enterprise projects.

Basis on [wfcreations/yii2-app-api](https://github.com/wfcreations/yii2-app-api)

Development: [![Stories in Ready](https://camo.githubusercontent.com/ae9734fb72d39d5b145db86864a9375a926f218140d1601d2aa83a77c2865265/68747470733a2f2f62616467652e776166666c652e696f2f73696264732f796969322d656e74657270726973652e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/sibds/yii2-enterprise)

[![GitHub stars](https://camo.githubusercontent.com/c231bc2c2e57b09cc48f7aa7f4b69a90a980e67405e94d72964557981c9060b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73696264732f796969322d656e74657270726973652e737667)](https://github.com/sibds/yii2-enterprise/stargazers)[![Latest Stable Version](https://camo.githubusercontent.com/e7e0a565640f1d04bbb28fc932ccaf8993e7ba0b3a583991b5b9a63271a6bba2/68747470733a2f2f706f7365722e707567782e6f72672f73696264732f796969322d656e74657270726973652f762f737461626c65)](https://packagist.org/packages/sibds/yii2-enterprise) [![Total Downloads](https://camo.githubusercontent.com/28112b43b9e4425841b0eca3628e8ea74a8f5f080b348196afc2449f94fd3512/68747470733a2f2f706f7365722e707567782e6f72672f73696264732f796969322d656e74657270726973652f646f776e6c6f616473)](https://packagist.org/packages/sibds/yii2-enterprise) [![Latest Unstable Version](https://camo.githubusercontent.com/c78788b90450cfe87f2721a2981a207bf713370a1c49a9601799d2309129637e/68747470733a2f2f706f7365722e707567782e6f72672f73696264732f796969322d656e74657270726973652f762f756e737461626c65)](https://packagist.org/packages/sibds/yii2-enterprise) [![License](https://camo.githubusercontent.com/da155e85281be20627054b3de6c0294ea9f80241afa589c7478f330366c70052/68747470733a2f2f706f7365722e707567782e6f72672f73696264732f796969322d656e74657270726973652f6c6963656e7365)](https://packagist.org/packages/sibds/yii2-enterprise)

Travis CI: [![Build Status](https://camo.githubusercontent.com/b7aaa23859282567e90f361f26faaaef4ead0d8ca36d6e2f8c4499aa75f3a195/68747470733a2f2f7472617669732d63692e6f72672f73696264732f796969322d656e74657270726973652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sibds/yii2-enterprise)

Scrunitizer: [![Build Status](https://camo.githubusercontent.com/fa21d6b6fe7f055716b45b1c2d216610a758ad001761735e608ebf12e42d8b13/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696264732f796969322d656e74657270726973652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sibds/yii2-enterprise/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/0392ff7c103b697dda0bd4b773a9ed237c03d3543f5d152e66ebb8eb74e88d50/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696264732f796969322d656e74657270726973652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sibds/yii2-enterprise/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/80efb7b6685d9933ec4fcb0a36e33a2bd5ff5a128eba5db5f54f01fa29481427/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696264732f796969322d656e74657270726973652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sibds/yii2-enterprise/?branch=master)

Information about develop: .

[Roadmap](docs/roadmap.md)

Documentation is at [docs/guide/README.md](docs/guide/README.md).

REQUIREMENTS
------------

[](#requirements)

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
backend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains backend configurations
    controllers/         contains Web controller classes
    models/              contains backend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
api
    config/              contains api configurations
    controllers/         contains Web controller classes
    models/              contains api-specific model classes
    runtime/             contains files generated during runtime
    modules/             contains api versioning
    v1/                  contains module version 1
    web/                 contains the entry script and Web resources
frontend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides
tests                    contains various tests for the advanced application
    codeception/         contains tests developed with Codeception PHP Testing Framework

```

MODULES INCLUDED
----------------

[](#modules-included)

- [*bedezign/yii2-audit*](https://bedezign.github.io/yii2-audit/) - Records and displays web/cli requests, database changes, php/js errors and associated data.
- [*dektrium/yii2-user*](http://yii2-user.dmeroff.ru/) - Flexible user registration and authentication module for Yii2.
- [*dektrium/yii2-rbac*](https://github.com/dektrium/yii2-rbac) - Yii 2 module that helps managing your RBAC system.
- [*dmstr/yii2-adminlte-asset*](https://github.com/dmstr/yii2-adminlte-asset) - AdminLTE Asset Bundle for Backend Theme.
- [*dmstr/yii2-migrate-command*](https://github.com/dmstr/yii2-migrate-command) - Console Migration Command with multiple paths/aliases support.

VIRTUAL MACHINE
---------------

[](#virtual-machine)

**Important:** Only for testing.

Created on [PuPHPet.com](http://puphpet.com).

### How to

[](#how-to)

```
vagrant up

```

### MailCatcher

[](#mailcatcher)

Open in browser:  or

INSTALLATION
------------

[](#installation)

### Install from an Archive File

[](#install-from-an-archive-file)

Extract the github archive file to a directory named `yii2-enterprise` that is directly under the Web root.

After extraction run

```
php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar install

```

You can then access the application through the following URL:

```
http://localhost/yii2-enterprise/frontend/web/

```

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install this application template using the following command:

```
composer global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar create-project --prefer-dist --stability=dev sibds/yii2-enterprise app

```

Now you should be able to access the application through the following URL, assuming `app` is the directory directly under the Web root.

```
http://localhost/app/api/web/
http://localhost/app/backend/web/
http://localhost/app/frontend/web/

```

CONFIGURATION
-------------

[](#configuration)

### Database

[](#database)

Edit the file `common/config/db.php` with real data, for example:

```
return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2-enterprise',
    'username' => 'root',
    'password' => '123',
    'charset' => 'utf8',
];
```

**NOTE:** Yii won't create the database for you, this has to be done manually before you can access it.

Also check and edit the other files in the `config/` directory to customize your application.

#### Apply migrations

[](#apply-migrations)

[How configure migrations.](docs/guide/configure-migrations.md)

```
php yii migrate
```

#### Problem with migrations

[](#problem-with-migrations)

1. Try comment in file `common/config/main.php` the following lines:

```
'audit' => [
    'class' => 'bedezign\yii2\audit\Audit'
],

```

after migration complition, uncomment these lines.

### Enabling JSON Input

[](#enabling-json-input)

To let the API accept input data in JSON format, configure the \[\[yii\\web\\Request::$parsers\]\] property of the `request` [application component](http://www.yiiframework.com/doc-2.0/guide-structure-application-components.html)to use the \[\[yii\\web\\JsonParser\]\] for JSON input:

```
'request' => [
    'parsers' => [
        'application/json' => 'yii\web\JsonParser',
    ]
]
```

> Info: The above configuration is optional. Without the above configuration, the API would only recognize `application/x-www-form-urlencoded` and `multipart/form-data` input formats.

**IMPORTANT: without rbac/init you CAN'T LOG IN into backend**

### Demo user

[](#demo-user)

```
Login: webmaster
Password: webmaster

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![mazurva](https://avatars.githubusercontent.com/u/1152567?v=4)](https://github.com/mazurva "mazurva (76 commits)")[![waffle-iron](https://avatars.githubusercontent.com/u/6912981?v=4)](https://github.com/waffle-iron "waffle-iron (1 commits)")

### Embed Badge

![Health badge](/badges/sibds-yii2-enterprise/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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