PHPackages                             guanhui07/facade - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. guanhui07/facade

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

guanhui07/facade
================

facade

v1.1.0(3y ago)2401MITPHPPHP &gt;=7.4.0

Since Jan 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/guanhui07/facade)[ Packagist](https://packagist.org/packages/guanhui07/facade)[ Docs](https://github.com/guanhui07/facade)[ RSS](/packages/guanhui07-facade/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (1)

安装
--

[](#安装)

`composer require guanhui07/facade`

用法
--

[](#用法)

```
$container = Container::instance();
FacadeFactory::setContainer($container);
```

创建和使用外观
-------

[](#创建和使用外观)

Facade 应该是 AbstractFacade 的一个实例，并且应该提供一个访问器。

访问者是服务标识符。它将用于获取容器中的服务.

```
class TestFacade extends AbstractFacade
{

    protected static function accessor()
    {
        return TestService::class;
    }
}
```

调用服务实例
------

[](#调用服务实例)

```
$service = TestFacade::instance();
```

### 调用服务方法

[](#调用服务方法)

```
TestFacade::someMethod();
```

或者

```
$service = TestFacade::instance();
$service->someMethod();
```

我的其他包：
------

[](#我的其他包)

 借鉴Laravel实现的 PHP Framework ，FPM模式、websocket使用的workerman、支持容器、PHP8特性attributes实现了路由注解、中间件注解、Laravel Orm等特性

 Swoole模式下 Redis连接池

 facade、门面 fpm模式下可使用

 基于swoole实现的crontab秒级定时任务

 基于 illuminate/database 做的连接池用于适配Swoole的协程环境

 高性能PHP Framework ，Cli模式，基于Swoole实现，常驻内存，协程框架，支持容器、切面、PHP8特性attributes实现了路由注解、中间件注解、支持Laravel Orm等特性

 open-ai chatgpt调用

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Every ~7 days

Total

6

Last Release

1188d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3abde3fccf025ce86670101d7cfa0641d2415c9daad93e5f0c9573a2b23ddbda?d=identicon)[guanhui07](/maintainers/guanhui07)

---

Top Contributors

[![guanhui07](https://avatars.githubusercontent.com/u/5820457?v=4)](https://github.com/guanhui07 "guanhui07 (13 commits)")

---

Tags

facadelaravelphpstatic

### Embed Badge

![Health badge](/badges/guanhui07-facade/health.svg)

```
[![Health](https://phpackages.com/badges/guanhui07-facade/health.svg)](https://phpackages.com/packages/guanhui07-facade)
```

###  Alternatives

[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63118.9k3](/packages/infinum-eightshift-libs)[drupal-code-builder/drupal-code-builder

Code generator for Drupal

27241.1k1](/packages/drupal-code-builder-drupal-code-builder)[php-di/zf1-bridge

Integrates PHP-DI to Zend Framework 1

27457.8k1](/packages/php-di-zf1-bridge)[sansec/composer-integrity-plugin

5624.2k1](/packages/sansec-composer-integrity-plugin)[php-di/symfony-bridge

Integrates PHP-DI to Symfony

17168.2k](/packages/php-di-symfony-bridge)[okapi/aop

PHP AOP is a PHP library that provides a powerful Aspect Oriented Programming (AOP) implementation for PHP.

3812.0k](/packages/okapi-aop)

PHPackages © 2026

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