Guzzle PHP 6.5 Documentationindex next | Guzzle 6 » Guzzle Documentation Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. Simple interface for building query strings requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic on_stats progress proxy query read_timeout sink ssl_key stream synchronous verify timeout version Guzzle and PSR-7 Headers Accessing Headers Complex Headers Body Requests Request Methods Request URI0 码力 | 65 页 | 311.42 KB | 11 月前3
Guzzle PHP 6.5 DocumentationGuzzle Release July 02, 2020 Contents 1 User Guide 3 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 1.4 Guzzle and PSR-7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6 Testing Guzzle Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 10 码力 | 50 页 | 237.04 KB | 11 月前3
Guzzle PHP 5.3 DocumentationGuzzle Feb 18, 2020 Contents 1 User guide 3 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Quickstart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 1.8 Testing Guzzle Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 1 . . . . . . . . . . . . 54 2 HTTP Components 57 3 Service Description Commands 59 i ii Guzzle Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web0 码力 | 63 页 | 275.75 KB | 11 月前3
Guzzle PHP 7.0 Documentationindex next | Guzzle 6 » Guzzle Documentation Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. Simple interface for building query strings requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic on_stats progress proxy query read_timeout sink ssl_key stream synchronous verify timeout version Guzzle and PSR-7 Headers Accessing Headers Complex Headers Body Requests Request Methods Request URI0 码力 | 64 页 | 310.93 KB | 11 月前3
Guzzle PHP 5.3 DocumentationGuzzle Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. Manages things like persistent connections, represents query strings as collections interface without requiring a dependency on a specific event loop. Pluggable HTTP handlers allows Guzzle to integrate with any method you choose for sending HTTP requests over the wire (e.g., cURL, sockets sockets, PHP’s stream wrapper, non-blocking event loops like React [http://reactphp.org/], etc.). Guzzle makes it so that you no longer need to fool around with cURL options, stream contexts, or sockets.0 码力 | 72 页 | 312.62 KB | 11 月前3
Guzzle PHP 7.0 DocumentationGuzzle Release July 23, 2020 Contents 1 User Guide 3 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 1.4 Guzzle and PSR-7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6 Testing Guzzle Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 10 码力 | 50 页 | 235.39 KB | 11 月前3
Guzzle PHP v5 DocumentationGuzzle Release November 16, 2017 Contents 1 User Guide 3 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.4 Guzzle and PSR-7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 1.6 Testing Guzzle Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 10 码力 | 49 页 | 231.08 KB | 11 月前3
Guzzle PHP v5 Documentationindex next | Guzzle 6 » Guzzle Documentation Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. Simple interface for building query strings requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic on_stats progress proxy query read_timeout sink ssl_key stream synchronous verify timeout version Guzzle and PSR-7 Headers Accessing Headers Complex Headers Body Requests Request Methods Request URI0 码力 | 62 页 | 309.78 KB | 11 月前3
Laravel 5.1 中文文档4 将会在今年 9 月份“寿终正寝”,并且 PHP 开发组不会再提供安全更新,Laravel 5.1 要求 PHP5.5.9 或更高版本。PHP5.5.9 兼容一些最新版本的流行 PHP 库如 Guzzle 和 AWS SDK。 LTS Laravel 5.1 是 Laravel 第一个长期支持版本,将会提供两年的 bug 修复和安全修复,这是 迄今为止,Laravel 提供的最大跨度的支 服务器更简单、更快。所有的 API 驱 动要求应用已经安装 Guzzle HTTP 库。你可以通过添加如下行到 composer.json 文件来安 装 Guzzle 到项目: "guzzlehttp/guzzle": "~5.3|~6.0" 1.1.1 Mailgun 驱动 要使用 Mailgun 驱动,首先安装 Guzzle,然后在配置文件 config/mail.php 中设置 driver 'your-mailgun-domain', 'secret' => 'your-mailgun-key',], 1.1.2 Mandrill 驱动 要使用 Mandrill 驱动,首先安装 Guzzle,然后在配置文件 config/mail.php 中设置 driver 选项值为 mandrill。接下来,验证配置文件 config/services.php 包含如下选项: 'mandrill'0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.6 中文文档如果用户通过了授权请求,会被重定向回第三方应用。第三方应用接下来会发送一个 POST 请求到服务端应用来请求访问令牌。这个请求应该包含用 户通过授权请求时指定的授权码。在这个例子中,我们会使用 Guzzle HTTP 库来生成 POST 请求: Route::get('/auth/callback', function (Request $request) { $http = new 的 API 认证都是通过这种方式实现的。 刷新令牌 如果应用颁发的是短期有效的访问令牌,那么用户需要通过访问令牌颁发时提供的 refresh_token 刷新访问令牌,在本例中,我们使用 Guzzle HTTP 库来刷新令牌: 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org $request) { ... })->middleware('client'); 要获取令牌,发送请求到 oauth/token: $guzzle = new GuzzleHttp\Client; $response = $guzzle->post('http://your-app.com/oauth/token', [ 'form_params' => [0 码力 | 377 页 | 14.56 MB | 1 年前3
共 15 条
- 1
- 2













