https://github.com/rhosocial/yii2-base-models
Base Models for Yii 2 Applications.
https://github.com/rhosocial/yii2-base-models
model mongodb php query redis relational-databases user yii2-extension
Last synced: about 2 months ago
JSON representation
Base Models for Yii 2 Applications.
- Host: GitHub
- URL: https://github.com/rhosocial/yii2-base-models
- Owner: rhosocial
- License: agpl-3.0
- Created: 2016-12-27T14:54:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T01:41:03.000Z (about 3 years ago)
- Last Synced: 2025-02-09T23:19:24.111Z (over 1 year ago)
- Topics: model, mongodb, php, query, redis, relational-databases, user, yii2-extension
- Language: PHP
- Homepage: https://dev.rho.social/products/yii2-base-models
- Size: 480 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
yii2-base-models
================
The Base Models for Yii 2 Applications
[](https://packagist.org/packages/rhosocial/yii2-base-models)
[](https://packagist.org/packages/rhosocial/yii2-base-models)
[](https://www.versioneye.com/php/rhosocial:yii2-base-models/references)
[](http://travis-ci.org/rhosocial/yii2-base-models)
[](https://www.versioneye.com/php/rhosocial:yii2-base-models/dev-master)
[](https://scrutinizer-ci.com/g/rhosocial/yii2-base-models/)
[](https://scrutinizer-ci.com/g/rhosocial/yii2-base-models/)
[](https://codeclimate.com/github/rhosocial/yii2-base-models)
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist rhosocial/yii2-base-models "*"
```
or add
```
"rhosocial/yii2-base-models": "*"
```
to the require section of your `composer.json` file.
If you want to use Redis or MongoDB ActiveRecord, please add
```
"yiisoft/yii2-redis": "*"
```
or
```
"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](https://pecl.php.net/package/mongodb) 1.2.0 or above.
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
use rhosocial\base\models\models\BaseEntityModel;
class Example extends BaseEntityModel
{
...
}
```
further detailed usage seen in code file notes.
Contact Us
----------
[](https://gitter.im/rhosocial/yii2-base-models?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
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.
[](https://dev.rho.social/products/yii2-base-models)