Download the PHP package gouguoyin/easyhttp without Composer

On this page you can find all versions of the php package gouguoyin/easyhttp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package easyhttp

EasyHttp 是一个轻量级、语义化、对IDE友好的HTTP客户端,支持常见的HTTP请求、异步请求和并发请求,让你可以快速地使用 HTTP 请求与其他 Web 应用进行通信。

EasyHttp并不强制依赖于cURL,如果没有安装cURL,EasyHttp会自动选择使用PHP流处理,或者你也可以提供自己的发送HTTP请求的处理方式。

如果您觉得EasyHttp对您有用的话,别忘了给点个赞哦^_^ !

github:github.com/gouguoyin/easyhttp

gitee:gitee.com/gouguoyin/easyhttp

robeeask社区:https://easyhttp.robeeask.com/

安装说明

环境依赖

一键安装

composer require gouguoyin/easyhttp

发起请求

同步请求

常规请求
发送 Content-Type 编码请求
发送 Multipart 表单请求

表单enctype属性需要设置成 multipart/form-data

携带请求头的请求
携带重定向的请求
携带认证的请求
携带 User-Agent 的请求
携带Token令牌的请求
携带认证文件的请求
携带SSL证书的请求
携带COOKIE的请求
携带协议版本的请求
携带代理的请求
设置超时时间(单位秒)
设置延迟时间(单位秒)
设置并发次数

异步请求

异步并发请求

如果未调用concurrency()方法,并发次数默认为$promises的元素个数,$promises数组里必须是异步请求

使用响应

发起请求后会返回一个 Gouguoyin\EasyHttp\Response $response的实例,该实例提供了以下方法来检查请求的响应:

异常处理

请求在发生客户端或服务端错误时会抛出 Gouguoyin\EasyHttp\RequestException $e异常,该实例提供了以下方法来返回异常信息:

更新日志

2020-03-30

2020-03-20

Todo List


All versions of easyhttp with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
guzzlehttp/guzzle Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gouguoyin/easyhttp contains the following files

Loading the files please wait ....