atekushi/facade
最新稳定版本:1.0.0
Composer 安装命令:
composer require atekushi/facade
包简介
Small Library to Implement Facade on DI Container To Your Project
README 文档
README
Facade acts as a static proxy for accessing underlying objects or services, simplifying interaction with complex subsystems or dependencies.
Why Use it ?
- Static Access: Use static calls to access methods on underlying objects.
- Dependency Management: Automatically resolves dependencies using the
atekushi/containerlibrary. - Simplified API: Provides a clean and elegant interface for complex subsystems.
Installation
Install the library via Composer:
composer require atekushi/facade
Usage
- Create new facade class
Example:
include 'vendor/autoload.php'; use Atekushi\Facade\Facade; class BaseClass { public function test(){ echo "Test" } } /** * @method static void test() * * @mixin BaseClass */ class A extends Facade { protected static function getClassSubject(): string { return BaseClass::class; } } A::test()
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-14