Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 4.78 KB

README.md

File metadata and controls

72 lines (50 loc) · 4.78 KB

Yii ActiveRecord Library


This package provides ActiveRecord library. It is used in Yii Framework but is supposed to be usable separately.

Latest Stable Version Total Downloads Build status Code Coverage Mutation testing badge type-coverage

Support databases:

Packages PHP Versions CI-Actions
[db-mssql] 7.4 - 8.0 2017 - 2019 Build status Mutation testing badge Code Coverage
[db-mysql] 7.4 - 8.0 5.7 - 8.0 Build status Mutation testing badge Code Coverage
[db-pgsql] 7.4 - 8.0 9.0 - 13.0 Build status Mutation testing badge Code Coverage
[db-sqlite] 7.4 - 8.0 3:latest Build status Mutation testing badge Code Coverage

Installation

The package could be installed via composer:

composer require yiisoft/active-record

Note: You must install the repository of the implementation to use.

Example:

composer require yiisoft/db-mysql

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Note: You must have SQLITE installed to run the tests, it supports all SQLITE version 3.

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm