PHPackages                             guillemc/yii2starter - 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. guillemc/yii2starter

ActiveProject[Framework](/categories/framework)

guillemc/yii2starter
====================

Yii 2 Starter Application Template

032PHP

Since Apr 29Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Yii 2 Starter Application Template
==================================

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

Yii 2 Starter Application Template is a skeleton Yii 2 application best for rapidly creating small to medium sized projects.

It is built upon the official [Yii 2 Basic Application Template](https://github.com/yiisoft/yii2-app-basic)but provides two separate applications, for the frontend and the backend. Unlike in the [Yii 2 Advanced Application Template](https://github.com/yiisoft/yii2-app-advanced), here the two apps share the same webroot, and are accessed using different entry scripts.

The template contains basic backend functionality such as password reset, administrator and user management.

The backend is built upon the [AdminLTE theme](https://almsaeedstudio.com/AdminLTE).

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

[](#directory-structure)

```
  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  gii/                contains code generator templates
  install/            contains the post-installation script
  mail/               contains view files for e-mails
  messages/           contains the translation files
  migrations/         contains the database migrations
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry scripts (index.php and back.php) and Web resources
    assets/           directory for the auto-published yii assets
    files/            directory for user uploads

```

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

[](#requirements)

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

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

[](#installation)

### 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"
composer create-project --prefer-dist --stability=dev guillemc/yii2starter myapp

```

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

[](#configuration)

### Filesystem permissions

[](#filesystem-permissions)

The webserver needs write access to the `runtime`, `web/assets` and `web/files` directories. The install script can attempt to do this, but in a pretty harcoded way (using setfacl commands and assuming an apache `www-data` user).

### Database

[](#database)

This project assumes that a mysql database will be used. It must be created beforehand.

### Environment configuration

[](#environment-configuration)

Open the file `.env.php` from the root directory and customize the environment variables, as well as the database connection details. This file can also be used to store any sensitive information that must not end up in the repository, such as api keys, passwords, etc.

Edit the files in the `config/` directory and customize your application (name, language, timezone...).

### Apply migration

[](#apply-migration)

Run `./yii migrate` from the console. This will create the administrators table (with the root administration user `admin` with password `admin`) and the users table.

### Application URLs

[](#application-urls)

If installed inside your webserver's document root, the frontend will be available at `http://localhost/myapp/web/`and the backend at `http://localhost/myapp/web/back.php`. In production it is recommended that you set a virtual host for your application that points to the `web` directory, so that the access urls become `http://myapp.com/`and `http://myapp.com/back.php`.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/912bec5f29ed428fce99ed8c9738e18599c447c0a0fe75dfab066530c1798212?d=identicon)[guillemc](/maintainers/guillemc)

---

Top Contributors

[![guillemc](https://avatars.githubusercontent.com/u/2320275?v=4)](https://github.com/guillemc "guillemc (61 commits)")

### Embed Badge

![Health badge](/badges/guillemc-yii2starter/health.svg)

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

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