PHPackages                             combc/yii2boilerplate - 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. combc/yii2boilerplate

ActiveProject[Framework](/categories/framework)

combc/yii2boilerplate
=====================

Structure for enterprise-grade websites for Yii2 framework.

1065Shell

Since Feb 23Pushed 11y ago7 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Yii2 Boilerplate
================

[](#yii2-boilerplate)

Structure for enterprise-grade websites for Yii2 framework.

Easiest initial deploy ever
---------------------------

[](#easiest-initial-deploy-ever)

1. Install [Vagrant](http://docs.vagrantup.com/v2/getting-started/).
2. Install [Virtualbox](https://www.virtualbox.org/).
3. If you have PHP 5.4+ installed already, you've just installed all prequisites for YiiBoilerplate.
4. Now just clone the Yii2Boilerplate repo:

    ```
    git clone git@github.com/combc/Yii2-Boilerplate.git

    ```
5. Create your own github personal API tokens . Paste it into a Vagrantfile.

    Example:

    ```
    s.args   = [
       #YOUR GITHUB TOKEN HERE
       "d1d8c6a9e9b706a596b96b9994bf0549109083ba",
       ...
    ]

    ```

    Note: [Yii2Install](http://www.yiiframework.com/doc-2.0/guide-start-installation.html)
6. Inside cloned directory run and wait for complete:

    ```
    vagrant up

    ```
7. You're done. Open up the . It's your future frontend. Open up . It's your future backend. You can start working.
8. Change the origin repo to the new repository in order to push your new project:

    ```
     git remote remove origin
     git remote add origin

    ```

    Don't forget to `vagrant halt` the virtual machine before turning off your workstation, virtualbox can fail to shut itself down in time before `kill -9` arrives.

Yii 2 Advanced Application Template
-----------------------------------

[](#yii-2-advanced-application-template)

Yii2Boilerplate uses [Yii 2 Advanced Application Template](https://github.com/yiisoft/yii2-app-advanced) is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.

Vagrant config
--------------

[](#vagrant-config)

### Database

[](#database)

You can select up data between [MySQL 5.6](http://www.mysql.com/) and [Postgres 9.3](http://www.postgresql.org/). Enter the Vagrantfile name of the database, default mysql.

Example:

```
    s.args   = [
        ...
        #YOUR DATABASE TYPE HERE [mysql|pgsql]
        "pgsql"
    ]

```

If you have chosen MySQL:

PhpMyAdmin adress:

If you have chosen Postgres:

PhpPgAdmin adress:

#### Database default credential:

[](#database-default-credential)

login: vagrant

password: vagrant

database: yii2boilerplate

database for tests: yii2boilerplate\_tests

### MailCatcher

[](#mailcatcher)

[MailCatcher](http://mailcatcher.me/) runs a super simple SMTP server which catches any message sent to it to display in a web interface.

smtp://0.0.0.0:1026

Default common/config/main-local.php:

```
    'mailer' => [
        'class' => 'yii\swiftmailer\Mailer',
        'viewPath' => '@common/mail',
        'useFileTransport' => false,
    ],

```

### Virtual Machine config

[](#virtual-machine-config)

Use the vagrantfile to the desired options of memory and cpu.

DEFAULT: memory = 1024 MB, cpus = 2

```
    config.vm.provider "virtualbox" do |v|
            #v.memory = 512
            #v.cpus = 1

            v.memory = 1024
            v.cpus = 2
    end

```

More

### XDebug conf

[](#xdebug-conf)

XDebug SessionId: XDEBUG

XDebug port 9000

#### On run configuration:

[](#on-run-configuration)

```
    Project URL: http://yii2backend.dev:8080/
    Index file: backend/web/index.php

    or

    Project URL: http://yii2frontend.dev:8080/
    Index file: backend/web/index.php

```

### The installed

[](#the-installed)

- [Ubuntu 14.04](http://releases.ubuntu.com/14.04/)
- [Apache 2.4](http://www.apache.org/)
- [PHP 5.6](http://php.net/)
- [Composer](https://getcomposer.org/)

    ```
      composer

    ```
- [Coceception](http://codeception.com/)

    ```
      codecept

    ```
- [PHP Dead Code Detector](https://github.com/sebastianbergmann/phpdcd),

    ```
      phpdcd

    ```
- [PHP Mess Detector](http://phpmd.org/),

    ```
      phpmd

    ```
- [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer),

    ```
      phpcs

    ```
- [PHP Copy/Paste Detector](https://github.com/sebastianbergmann/phpcpd),

    ```
      phpcpd

    ```
- [PHP Documentation Generator](http://phpdox.de/),

    ```
      phpdox

    ```

### License

[](#license)

And of course:

MIT: [LICENSE](../master/LICENSE.md)

====

> ComBC
>

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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/cef1b6adbc02267c17857b888a7009628aafe60563e69cd95761a4990d096838?d=identicon)[ComBC](/maintainers/ComBC)

---

Top Contributors

[![adammichna](https://avatars.githubusercontent.com/u/7020485?v=4)](https://github.com/adammichna "adammichna (14 commits)")[![combc](https://avatars.githubusercontent.com/u/10992153?v=4)](https://github.com/combc "combc (3 commits)")

### Embed Badge

![Health badge](/badges/combc-yii2boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/combc-yii2boilerplate/health.svg)](https://phpackages.com/packages/combc-yii2boilerplate)
```

###  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)
