Download the PHP package roxblnfk/cycle-active-record without Composer
On this page you can find all versions of the php package roxblnfk/cycle-active-record. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roxblnfk/cycle-active-record
More information about roxblnfk/cycle-active-record
Files in roxblnfk/cycle-active-record
Package cycle-active-record
Short Description Cycle Active Record
License MIT
Homepage https://github.com/roxblnfk/cycle-active-record
Informations about the package cycle-active-record
Cycle Active Record
ActiveRecord pattern based on Cycle ORM. AR entities work fine with mappers, repositories, behaviors and other Cycle features.
The package just adds to entity such proxy methods like save and delete using a class inheritance.
Requirements
Make sure that your server is configured with following PHP version and extensions:
- PHP 8.0+
- One of the Cycle ORM adapters:
spiral/cycle-bridgepackage for the Spiral Frameworkyiisoft/yii-cycle^2.0 package for the Yii 3
Installation
You can install the package via composer:
After package install you need to register bootloader from the package.
Note If you are installing the package on the Yii 3 or Spiral Framework with the
spiral-packages/discovererpackage, then you don't need to register bootloader by yourself. It will be registered automatically.
Spiral Framework without discoverer
Update Bootloader list
Custom application
After Container initialization just register it in AR static class:
Example
Entity:
Usage:
Testing
License
The MIT License (MIT). Please see License File for more information.