PHP Classes

Yii2 Active Record Explicit: Provide explicit behaviors to Yii2 ActiveRecord

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 20 All time: 11,349 This week: 455Up
Version License PHP version Categories
yii2-active-record-e 1.0MIT/X Consortium ...5PHP 5, Databases, Libraries, Data types, D...
Description 

Author

The package can provide explicit behaviors to Yii2 ActiveRecord.

It provides class extensions to the Yii2 framework ActiveRecord base classes to provide new behaviors using additional behavior implementation classes.

Currently, it implements behavior classes to:

- Make certain model attributes read-only so they cannot be changed

- Make an attribute be handled like a timestamp

- Add support for type-casting attributes

Innovation Award
PHP Programming Innovation award nominee
June 2023
Number 6
ActiveRecord is a common design pattern many software applications use to map objects containing the information of entities that the applications need to manipulate into database records.

There are ActiveRecord implementations in many programming languages that use different frameworks.

The package extends the ActiveRecord implementation of the PHP Yii2 framework to implement more explicit behaviors useful for many applications, such as specifying read-only attributes, timestamp attributes, and type casting.

Manuel Lemos
Picture of Smoren  Freelight
  Performance   Level  
Innovation award
Innovation award
Nominee: 16x

 

Details

yii2-active-record-explicit

Extended and more explicit behavior for ActiveRecord classes for Yii2

How to install to Yii2 project

composer require smoren/yii2-active-record-explicit

  Files folder image Files (34)  
File Role Description
Files folder imagesrc (10 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:0
All time:11,349
This week:455Up