定制 jeremykendall/ultra-facade 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jeremykendall/ultra-facade

Composer 安装命令:

composer require jeremykendall/ultra-facade

包简介

Implements the Facade pattern to build SplIterators.

README 文档

README

In the context of UltraFacade, a Facade is an object-oriented creational design pattern to implement the concept of facades and deals with the problem of creating objects without specifying the exact class of object that will be created.

A Concrete Implementation

The concrete implentation in this library, JeremyKendall\UltraFacade\SplIteratorFacade, is an example of how to properly use a Facade. It creates SPL Iterators based on a type string passed in at runtime. The type string is the name of the SPL Iterator with 'Iterator' removed (less typing FTW). The second optional argument is used to pass required params the the iterator's constructor.

$iterator = new SplIteratorFacade::facade('RecursiveDirectory', array(__DIR__));

While this specific facade implementation is production ready and should be used if you have a use case for it, the intent is simply to demonstrate how the Facade should be used.

Installation

Installation is handled via Composer.

{
    "require": {
        "jeremykendall/ultra-facade": "1.*"
    }
}

Please check the UltraFacade page at Packagist for the latest version.

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固