webbj74/jsdl-loader
最新稳定版本:0.1.2
Composer 安装命令:
composer require webbj74/jsdl-loader
包简介
A stand-alone JSON Service Description loader for Guzzle based on the ServiceDescriptionLoader class from Guzzle 3.x
README 文档
README
A stand-alone JSON Service Description loader for Guzzle 5.x based on the ServiceDescriptionLoader class from Guzzle 3.x
Usage
This software is still pre-release.
Add to composer:
$ composer require "webbj74/jsdl-loader:~0.1"
or
$ composer require "webbj74/jsdl-loader:dev-master"
Based on the guzzle/guzzle-services example.
use GuzzleHttp\Client;
use GuzzleHttp\Command\Guzzle\Description;
use GuzzleHttp\Command\Guzzle\GuzzleClient;
use Webbj74\JSDL\Loader\ServiceDescriptionLoader;
$client = new Client();
$jsdlLoader = new ServiceDescriptionLoader();
$description = new Description($jsdlLoader->load($pathToServiceDescription));
// Create a new Guzzle Service Description client
$guzzleClient = new GuzzleClient($client, $description);
统计信息
- 总下载量: 143.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-03