opus-online / yii2-base
Base components used by projects and modules
Installs: 14 814
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
Requires (Dev)
- phpunit/phpunit: 4.2.*
This package is not auto-updated.
Last update: 2023-12-19 18:40:10 UTC
README
Base components for Yii2 projects and modules
This repository contains very basic building blocks for modules and projects used by Opus Online. As the components are very specific to the projects and modules involved, this repository is probably of little public interest.
Contents
Behaviors:
- BlameableBehavior - auto-fills
created_by
andupdated_by
fields - SafeSaverBehavior - provides
saveSafe($attributes)
method to AR models - TimestampBehavior - auto-fills
created_at
andupdated_at
fields - QueryLanguageBehaviour - adds functionality to generate links with query languages with ease
- ResponseFormatBehavior - auto-assigns responseType according to response header in Response object
Running tests
Run composer install
and then in the project root directory
./vendor/bin/phpunit
Changelog
- 1.2 - Added
ResponseFormatBehavior
- 1.1 - Added
JsVariablesBehavior
,QueryLanguageBehaviour
- 1.0 - Initial commit