votong/guzzle-cloudflare-middleware 问题修复 & 功能扩展

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

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

votong/guzzle-cloudflare-middleware

最新稳定版本:1.0.2

Composer 安装命令:

composer require votong/guzzle-cloudflare-middleware

包简介

Cloudflare Middleware For Guzzle

README 文档

README

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require votong/guzzle-cloudflare-middleware.

"require": {
    "votong/guzzle-cloudflare-middleware": "1.*"
}

Finally, update Composer from the Terminal:

composer update

Usage

It's really as simple as using the middleware class with Guzzle:

use GuzzleHttp\Client;
use VoTong\GuzzleCloudflareMiddleware\CloudflareMiddleware;
use GuzzleHttp\Cookie\FileCookieJar;

$client = new Client(['cookies' => new FileCookieJar('cookies.txt')]);

$client->getConfig('handler')->push(CloudflareMiddleware::create());

$res = $client->request('GET', 'http://www.exemple.com/');
echo $res->getBody();

License

guzzle-cloudflare-middleware is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-08