承接 phlib/guzzle-middleware 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

phlib/guzzle-middleware

最新稳定版本:2.0.0

Composer 安装命令:

composer require phlib/guzzle-middleware

包简介

Guzzle Middleware: absolute urls, convert charset

README 文档

README

Code Checks Codecov Latest Stable Version Total Downloads Licence

Guzzle Middleware

Install

Via Composer

$ composer require phlib/guzzle-middleware

PHP Usage

<?php
declare(strict_types=1);

require_once __DIR__ . '/vendor/autoload.php';

use Phlib\Guzzle\AbsoluteUrls;
use Phlib\Guzzle\ConvertCharset;

$handler = \GuzzleHttp\HandlerStack::create();
$handler->push(new ConvertCharset());
$handler->push(new AbsoluteUrls);

$client = new \GuzzleHttp\Client(['handler' => $handler]);
echo (string)$client->get('http://www.example.com')->getBody();

License

This package is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2017-02-21