Skip to content

perf2k2/yii2-facades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facades for standard Yii2 application components

Build Status Coverage Status

Why?

In order to install cookie code was not so

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

and so

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:

$ composer require perf2k2/yii2-facades

License

MIT (see LICENSE.md)

About

Facades for standard Yii2 application components

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages