kohkimakimoto/static-proxy
Composer 安装命令:
composer require kohkimakimoto/static-proxy
包简介
StaticProxy provides static interface to an instance method.
README 文档
README
StaticProxy provides static interface to an instance method. It's heavily inspired by the Facades of Laravel.
Requirement
PHP5.3 or later.
Installation
You can use composer installation.
Make composer.json file like the following.
{
"require": {
"kohkimakimoto/static-proxy": "0.*"
}
}
And run composer install command.
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
Usage
<?php use Kohkimakimoto\StaticProxy\StaticProxy; use Kohkimakimoto\StaticProxy\StaticProxyContainer; $container = new StaticProxyContainer(); $container->bind("hello", new HelloworldFunctions()); StaticProxy::setContainer($container); StaticProxy::addAlias("Hw", "Test\Kohkimakimoto\StaticProxy\Helloworld"); Hw::helloWorld();
Author
Kohki Makimoto kohki.makimoto@gmail.com
License
MIT
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-04