Download the PHP package amsify42/php-curl-http without Composer

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

PHP CURL HTTP

This is the PHP package for making http request through cURL and getting response.

Installation

Table of Contents

  1. Initialization
  2. Request
  3. Response

1. Initialization

For creating cURL http request, we can do like this by passing url to it.

or with helper method

2. Request

If the request method is not of type GET, we can pass this with CurlHtpp instance

or with Amsify42\CurlHtpp\Request instance

With Amsify42\CurlHtpp\Request we can also call these methods.

You can simply pass json encoded request data also if you don't want to pass header or contentType for json

For headers, you can also pass array items as key values

3. Response

After executing the cURL through CurlHttp, we will get response of type Amsify42\CurlHttp\Response

We can call these methods with the response

For executing different methods like GET, POST, PUT and DELETE, you can also call these methods to get response with a single call.

Methods post(), put() and delete() expects three more optional parameters

For json request data, instead of passing contentType parameter as json to these methods you can also pass one of the header as Content-Type: application/json

or you can simply pass json encoded request data


All versions of php-curl-http with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
amsify42/php-vars-data Version dev-master
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 amsify42/php-curl-http contains the following files

Loading the files please wait ....