Download the PHP package robertmain/communique without Composer

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

Communique

Join the chat at https://gitter.im/robertmain/communique

Build Status Scrutinizer Code Quality Code Coverage

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

What is it?

A flexible pluggable REST client using middleware. The aim of this project is to provide a REST client that is flexible enough to permit the modification of the request and response using request and response interceptors(conceptually similar to AngularJS, although implemented somewhat differently).

Usage

Typical Usage

You can make a request with the REST library using the code below. It is worth noting, the get, put, post, delete etc. methods do not return the raw response payload, but an encapsulation object of type \Communique\RESTClientResponse. This object contains

  1. The HTTP status code (200, 201, 404, 500 etc.)
  2. The response payload (the response body from the server)
  3. The server headers (any headers that the server returned with the payload, these are often useful for cache control).

You can find more information from the \Communique\RESTClientResponse documentation

Request Interceptors

Whilst the above example is useful for making simple requests and returning the result from the API, you may wish to have a little more control over the request. Communique provides a method to do this using Interceptors. An interceptor is a class with request and response methods. The request method of each interceptor is called on each request and each the response interceptor method is called on each response. This allows the complex modification of requests juts before they are sent and just after they are retured. This allows for things like JSON parsing, OAuth request signing or caching. Interceptors are executed in the order in which they are provided. If you wish to add an interceptor, you may do so by passing an array with an instance of your interceptor as the second constructor argumment to Communique. Interceptors should implement the \Communique\Interceptor interface

Custom HTTP Client

This library ships out of the box with a cURL implementation, however if you wish to provide your own you may do so using the third constructor argument as follows:

Licensing

Licensed under the GPL - please see the file called LICENSE for more info.

Contacts

Documentation

The documentation can be found here


All versions of communique with dependencies

PHP Build Version
Package Version
Requires kdyby/curl-ca-bundle Version ~1.0
phpunit/php-token-stream Version 1.4.8
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 robertmain/communique contains the following files

Loading the files please wait ....