opus-online/yii2-base

There is no license information available for the latest version (v1.2) of this package.

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

v1.2 2014-10-09 14:31 UTC

This package is not auto-updated.

Last update: 2023-12-19 18:40:10 UTC


README

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