opus-online/yii2-base Base components used by projects and modules

Build Status Scrutinizer Code Quality Code Coverage

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 and updated_by fields
  • SafeSaverBehavior - provides saveSafe($attributes) method to AR models
  • TimestampBehavior - auto-fills created_at and updated_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

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.2 is the latest of 4 releases



Unknown license
Stats
0 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
14814 total downloads