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

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

邮箱: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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固