2017 © Pedro Peláez
 

library yii2-facades

Facades for standard Yii2 application components

image

perf2k2/yii2-facades

Facades for standard Yii2 application components

  • Saturday, March 18, 2017
  • by perf2k2
  • Repository
  • 2 Watchers
  • 2 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Facades for standard Yii2 application components

Build Status Coverage Status, (*1)

Why?

In order to install cookie code was not so, (*2)

$cookies = Yii::$app->response->cookies;
$cookies->add(new \yii\web\Cookie([
    'name' => 'language',
    'value' => 'zh-CN',
]));

and so, (*3)

Cookies::add('language', 'zh-CN');

Supported components

  • Cache (part of it)
  • Cookies (part of it)
  • Db (part of it)
  • Headers (part of it)
  • Request (part of it)
  • User (part of it)
  • Auth (part of it)
  • Session (part of it)
  • Formatter (part of it)

Install

The fastest way is using composer:, (*4)

$ composer require perf2k2/yii2-facades, (*5)

License

MIT (see LICENSE.md), (*6)

The Versions

18/03 2017

dev-master

9999999-dev

Facades for standard Yii2 application components

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Romannikov Nikita

yii2