Download the PHP package singiu/http-php without Composer

On this page you can find all versions of the php package singiu/http-php. 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 http-php

PHP发送HTTP请求及处理响应的轻量组件

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

这个是用在我自己开发的其它组件包中的一个包,因为多个组件都有用到,所以我把它提取了出来,做成一个独立的包。 源码只是对 php-curl 模块方法的简单封装,功能非常轻量,如果你觉得合适,欢迎拿去使用。如果有使用上的问题或者 Bug,也欢迎提交到 Issues 中来。

现已支持 RESTful 请求方法。

安装

可以通过 Composer 安装:

基本用法

发送请求

发送 GET 请求。

发送 POST 请求。

其它参数:headers、timeout

发送REST请求方法。

PUT、DELETE、OPTIONS、HEAD、PATCH 这类请求方法与 GET 类似。 需要注意的是,所有的方法都可以传入 'data' 参数来设定要传输的数据,但是除了 POST 请求可以在服务端使用 $_POST 全局变量来获取外,其它请求方法都不能正常获取,只能通过 get_file_content('php://input') 来获取并且需要用户自己解析。

处理响应

Singiu\Http\Http::post 方法 和 Singiu\Http\Http::get 方法返回的是一个 Singiu\Http\Response 类的实例对象。 它现在包含以下方法:

License

The MIT License (MIT). Please see License File for more information.


All versions of http-php with dependencies

PHP Build Version
Package Version
No informations.
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 singiu/http-php contains the following files

Loading the files please wait ....