PHPackages                             perf2k2/yii2-facades - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. perf2k2/yii2-facades

ActiveLibrary[Framework](/categories/framework)

perf2k2/yii2-facades
====================

Facades for standard Yii2 application components

233PHP

Since Mar 18Pushed 9y ago2 watchersCompare

[ Source](https://github.com/perf2k2/yii2-facades)[ Packagist](https://packagist.org/packages/perf2k2/yii2-facades)[ RSS](/packages/perf2k2-yii2-facades/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Facades for standard Yii2 application components
================================================

[](#facades-for-standard-yii2-application-components)

[![Build Status](https://camo.githubusercontent.com/bf2126e417f386f10594954fcd7267c3949a48f6eeee12e434255925841537e0/68747470733a2f2f7472617669732d63692e6f72672f70657266326b322f796969322d666163616465732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/perf2k2/yii2-facades) [![Coverage Status](https://camo.githubusercontent.com/ad509ba359c8411bd23cd8f1106d43b83dea8f679ecca616756cd24ed33b382a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70657266326b322f796969322d73756761722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/perf2k2/yii2-sugar?branch=master)

Why?
----

[](#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
--------------------

[](#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
-------

[](#install)

The fastest way is using composer:

`$ composer require perf2k2/yii2-facades`

License
-------

[](#license)

MIT (see LICENSE.md)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce0170557fb41f04f3e4828c59ade75a5578e38149af847818dc24b28f2df9ec?d=identicon)[perf2k2](/maintainers/perf2k2)

---

Top Contributors

[![perf2k2](https://avatars.githubusercontent.com/u/7932964?v=4)](https://github.com/perf2k2 "perf2k2 (60 commits)")

---

Tags

yii2

### Embed Badge

![Health badge](/badges/perf2k2-yii2-facades/health.svg)

```
[![Health](https://phpackages.com/badges/perf2k2-yii2-facades/health.svg)](https://phpackages.com/packages/perf2k2-yii2-facades)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M290](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
