yii2-starter-kit/yii2-starter-kit Yii2 Starter Kit Application Template

frameworkstartcmsapplicationtemplateyii2advanced

Yii 2 Starter Kit

Packagist Packagist build

Stand with Ukraine!


1200x630-GitHub-1.png?resize=320%2C240

While Russia is destroying my home and my country, killing my friends and neighbors - any russian company, organization, or citizen, who do nothing about it, is prohibited from using this package. For others - please, pray for us, share information about war crimes Russia is conducting in Ukraine, do everything you can to urge your governments to be on the right side of history. Ukraine will prevail! Good triumph over evil! Русский военный корабль, иди нах#й!


This is Yii2 start application template.

It was created and developing as a fast start for building an advanced sites based on Yii2.

It covers typical use cases for a new project and will help you not to waste your time doing the same work in every project

Before you start

Please, consider helping project via contributions or donations.

TABLE OF CONTENTS

Quickstart

  1. Install taskctl
  2. Install docker
  3. Install docker-compose
  4. Run
    composer create-project yii2-starter-kit/yii2-starter-kit myproject.com --ignore-platform-reqs
    cd myproject.com
    taskctl start
  5. Go to http://yii2-starter-kit.localhost

FEATURES

Admin backend

  • Beautiful and open source dashboard theme for backend AdminLTE 3
  • Content management components: articles, categories, static pages, editable menu, editable carousels, text blocks
  • Settings editor. Application settings form (based on KeyStorage component)
  • File manager
  • Users, RBAC management
  • Events timeline
  • Logs viewer
  • System monitoring

Development tasks

To list all available development tasks follow these steps:

  1. Install taskctl task runner
  2. Run taskctl

I18N

  • Built-in translations:
    • English
    • Spanish
    • Russian
    • Ukrainian
    • Chinese
    • Vietnamese
    • Polish
    • Portuguese (Brazil)
    • Indonesian (Bahasa)
  • Language switcher, built-in behavior to choose locale based on browser preferred language
  • Backend translations manager

Users

  • Sign in
  • Sign up
  • Profile editing(avatar, locale, personal data)
  • Optional activation by email
  • OAuth authorization
  • RBAC with predefined guest, user, manager and administrator roles
  • RBAC migrations support

Development

Other

DEMO

administrator role account

Login: webmaster
Password: webmaster

manager role account

Login: manager
Password: manager

user role account

Login: user
Password: user

How to contribute?

You can contribute in any way you want. Any help appreciated, but most of all i need help with docs (^_^)

Have any questions?

Mail to victor@vgr.cl or yevhen.terentiev@gmail.com

READ MORE

NOTE

This template was created mostly for developers NOT for end users. This is a point where you can start your application, rather than creating it from scratch. Good luck!

Changelog

Yii Starter Kit Change Log

dev-master

  • Enh #434: Added ability to control assets linking with env variable
  • Fixed #428: Update for article categories didn't work on Yii 2.0.8

2.2.1

  • Fixed #407: Vagrant provisioning problems
  • Fixed #400: Application initialization bug
  • Added some sanitizing in ContactForm (#339)
  • env() helper function added
  • trntv/yii2-glide and trntv/yii2-command-bus versions updated
  • Testing improvements
  • PHP7 is now default for Vagrant
  • Models are reformatted consistently as per conventions. #365
  • Spanish translations was updated
  • Fixed #392: The destinator of the mail was missing
  • Maintenance mode works equally on all environments (#348)

2.2.0

  • Dockerfile based on PHP7
  • Travis CI integration

2.1.3

  • Ads placing example
  • DbText widget changes
  • Fixed #368: User form fixes
  • Fixed #369: missing field from user table in application tests

2.1.2

  • Fixed: Invalid user status validation
  • Fixed #363: Remove references to password_reset_token

2.1.1

  • Mailcathcer support
  • Optional user email activation

2.1.0

  • Enh #354: Command Bus implemented with yii2-command-bus extension
  • Enh #321: editOwnModel permission
  • Fixed #326
  • API Fixes
  • Fixed: password_confirm not validated
  • Enh: Shortcuts file added
  • Enh: Assets compression support
  • Enh #192: Docker support
  • Enh #223: Migrations for RBAC
  • Enh #189: Added command bus
  • Changed application setup proccess
  • Enh #184: Preserve article attachments file name
  • Enh #176: Added ability to set custom view for static pages and articles
  • Enh #160: LocaleBehavior::enablePreferredLanguage
  • fixes and improvements

2.0.0

  • Enh: Added Spanish locale
  • Enh: Frontend Account and Profile actions merged into one
  • Enh #146: Added MultiModel for handling multiple models at once
  • Enh #145: Added Application settings + FormModel and FormWidget for keyStorage component
  • Fixed: KeyStorage::set()
  • Enh #147: implemented KeyStorage::has() and KeyStorage::hasAll()
  • Enh: EnumColumn now loads enum as filter items
  • Enh #37: REST API module example
  • Enh #119: Removed default roles
  • Enh #128: Articles are available via slugs
  • Added Vagrant support
  • testing framework configuration
  • Imperavi redactor plugins enabled
  • Upload Kit updated to 1.0
  • AdminLTE updated to 2.0 branch
  • PSR2 formatting
  • ... fixes and many small changes ...

1.5.1

  • fixes

1.5.0

  • Enh: $cachingDuration parameter was added to common\components\keyStorage\KeyStorage::get
  • Fix: contact form fix
  • Enh: "robot" email now ca be set in .env
  • Enh #72: Maintenance mode
  • Enh: #79 chosen locale is stored in cookies
  • Enh: #84 Article Attachments
  • Chg: application structure
  • Chg #59: dotenv support
  • Enh #61: Backend Cache Controller
  • Enh: autocomplete now supports urlManagerFrontend and urlManagerBackend
  • Enh #55: components\grid\EnumColumn for GridView
  • Chng #52: Bower requirements was moved to composer
  • Fix: Many frontend/modules/user fixes
  • Fix: Autocompletion support
  • Enh: FileCache now uses same path for all applications
  • Enh: common\components\behaviors\CacheInvalidateBehavior
  • ... Fixes ...
  • Added ability to configure timezone and name of vagrant box

1.4.1

  • Cng #34: Environment class to configure application environment
  • Chg: message-migrate has moved to console/controllers/ExtendedMessageController - yii message/migrate @common/config/messages/php.php @common/config/messages/db.php
  • Eng #30: Tool to change code source language - yii message/replace-source-language @path language-LOCALE

1.4.0

  • Enh: backend user view page enhancement
  • Enh #29: delete button on log record page
  • Enh #28: init tool + local config files
  • Fix #25: backend user update
  • Chg: added utf-8 charset to nginx.conf
  • Enh: Added filters for log and file-storage grids
  • Enh: Backend now use yii\bootstrap\ActiveForm instead of yii\widgets\ActiveForm
  • Enh: added getFullName for UserProfile and getPublicIdentity for User
  • Fix: added some settings to prevent postfix fatal: usage: sendmail [options] error
  • Enh: Gii Module has separate configs for backend and frontend
  • Enh: Added gii templates for backend
  • Enh: Time information on "system information" screen
  • Fix #12: Locale bug
  • Enh: I18N validation rules
  • Enh: User backend controller don't available for manager
  • Enh #11: OAuth authorization
  • Fix #13: Article showing fix
  • Enh: Xhprof debug panel
  • ... many small enhancements and bugfixes ...

1.3.0

  • Enh: message configs for db, php and po formats
  • Enh: MessageController migrate action
  • Enh: I18N CRUD module
  • Enh: common\components\action\SetLocale
  • Enh: backendUrlManager, frontendUrlManager, bootstrap application

... enhancements, bugfixes

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



4.2 is the latest of 34 releases



BSD-3-Clause license
Stats
1416 github stars & 653 github forks
0 downloads in the last day
27 downloads in the last 30 days
6250 total downloads