Download the PHP package ehough/guzzle-commands without Composer

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

ehough/guzzle-commands

Build Status Latest Stable Version License

A PHP 5.3-compatible fork of Guzzle Commands.

Why?

Sadly, 60% of all PHP web servers still run PHP 5.4 and lower, but Guzzle Commands needs PHP 5.5 or higher. This fork makes Guzzle Commands compatible with PHP 5.3.29 through 7.1.

How to Use This Fork

Usage is identical to guzzle/command, except that the code in this library is namespaced under Hough\Guzzle\Command instead of GuzzleHttp\Command.


This library uses Guzzle (ehough/guzzle, version 6.x) and provides the foundations to create fully-featured web service clients by abstracting Guzzle HTTP requests and responses into higher-level commands and results. A middleware system, analogous to — but separate from — the one in the HTTP layer may be used to customize client behavior when preparing commands into requests and processing responses into results.

Commands

Key-value pair objects representing an operation of a web service. Commands have a name and a set of parameters.

Results

Key-value pair objects representing the processed result of executing an operation of a web service.

Service Clients

Service Clients are web service clients that implement the Hough\Guzzle\Command\ServiceClientInterface and use an underlying Guzzle HTTP client (GuzzleHttp\Client) to communicate with the service. Service clients create and execute commands (Hough\Guzzle\Command\CommandInterface), which encapsulate operations within the web service, including the operation name and parameters. This library provides a generic implementation of a service client: the Hough\Guzzle\Command\ServiceClient class.

Instantiating a Service Client

@TODO Add documentation

Executing Commands

Service clients create command objects using the getCommand() method.

After creating a command, you may execute the command using the execute() method of the client.

The result of executing a command will be a Hough\Guzzle\Command\ResultInterface object. Result objects are ArrayAccess-ible and contain the data parsed from HTTP response.

Service clients have magic methods that act as shortcuts to executing commands by name without having to create the Command object in a separate step before executing it.

Asynchronous Commands

@TODO Add documentation

@TODO Add documentation

Concurrent Requests

@TODO Add documentation

Middleware: Extending the Client

Middleware can be added to the service client or underlying HTTP client to implement additional behavior and customize the Command-to-Result and Request-to-Response lifecycles, respectively.

Todo


All versions of guzzle-commands with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.29
ehough/generators Version ~1.0
ehough/guzzle Version ^6.2
ehough/promises Version ~1.3
ehough/psr7 Version ~1.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 ehough/guzzle-commands contains the following files

Loading the files please wait ....