This package provides ActiveRecord library. It is used in Yii Framework but is supposed to be usable separately.
Packages | PHP | Versions | CI-Actions |
---|---|---|---|
[db-mssql] | 7.4 - 8.0 | 2017 - 2019 | |
[db-mysql] | 7.4 - 8.0 | 5.7 - 8.0 | |
[db-pgsql] | 7.4 - 8.0 | 9.0 - 13.0 | |
[db-sqlite] | 7.4 - 8.0 | 3:latest |
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
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.
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/infection
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm