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 today

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

26

—

LowBetter than 41% of packages

Maintenance27

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

1243d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5820457?v=4)[royee](/maintainers/guanhui07)[@guanhui07](https://github.com/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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[moodle/moodle

Moodle - the world's open source learning platform

7.2k88.5k88](/packages/moodle-moodle)[infinum/eightshift-libs

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

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

Code generator for Drupal

27253.3k1](/packages/drupal-code-builder-drupal-code-builder)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)

PHPackages © 2026

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