项目作者: rhosocial

项目描述 :
Base Models for Yii 2 Applications.
高级语言: PHP
项目地址: git://github.com/rhosocial/yii2-base-models.git
创建时间: 2016-12-27T14:54:28Z
项目社区:https://github.com/rhosocial/yii2-base-models

开源协议:GNU Affero General Public License v3.0

下载


yii2-base-models

The Base Models for Yii 2 Applications

Latest Stable Version
License
Reference Status
Build Status
Dependency Status
Code Coverage
Scrutinizer Quality Score
Code Climate

Installation

The preferred way to install this extension is through composer.
Either run

  1. php composer.phar require --prefer-dist rhosocial/yii2-base-models "*"

or add

  1. "rhosocial/yii2-base-models": "*"

to the require section of your composer.json file.

If you want to use Redis or MongoDB ActiveRecord, please add

  1. "yiisoft/yii2-redis": "*"

or

  1. "yiisoft/yii2-mongodb": "~2.1.0"

to the require section of your composer.json file by yourself.

Note: The MongoDB models need PHP MongoDB extension 1.2.0 or above.

Usage

Once the extension is installed, simply use it in your code by :

  1. use rhosocial\base\models\models\BaseEntityModel;
  2. class Example extends BaseEntityModel
  3. {
  4. ...
  5. }

further detailed usage seen in code file notes.

Contact Us

Join the chat at https://gitter.im/rhosocial/yii2-base-models

If you have any problems or good ideas about yii2-base-models, please discuss there, or send an email to i@vistart.me. Thank you!

If you want to send an email with your issues, please briefly introduce yourself first, for instance including your title and github homepage.

yii2-base-models