atekushi/facade 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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/container library.
  • 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-14