yii-extension / simple-model
Simple model for Yii3.
Installs: 4 666
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: >=8.0
- yiisoft/validator: ^3.0@dev
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/infection-static-analysis-plugin: ^1.11
- vimeo/psalm: ^4.13
This package is auto-updated.
Last update: 2024-11-05 09:09:18 UTC
README
Simple Model
Installation
composer require yii-extension/simple-model
Usage
You can create two types of classes, they are Model::class
and FormModel::class
through inheritance.
Model::class is the base class for all models.
FormModel::class is the base class for all form models, defined methods are:
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/roave-infection-static-analysis-plugin -j2 --ignore-msi-with-no-mutations --only-covered
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
License
The yii-extension/simple-model
is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Extension.