Download the PHP package csun-metalab/laravel-guzzle without Composer

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

Laravel Guzzle

Composer package for Laravel 5.0 and above that provides a consistent method of interacting with Guzzle.

This package is intended to be used to interact with JSON web services but it can also be used with any kind of request endpoint. It provides a basic interface with which to make requests but there is also the option to interact with the underlying Guzzle client instance directly if you need more robust functionality.

Table of Contents

Installation

Composer and Service Provider

Composer

NOTE: If your Laravel version is above 5.4, Guzzle may not be included by default. Check your vendor directory to verify. If you do not have a Guzzle dependency, run this command first:

To install this package from Composer, use the following command:

Service Provider

Add the service provider to your providers array in config/app.php in Laravel as follows:

Publish Everything

Finally, run the following Artisan command to publish everything:

The following assets are published:

Required Environment Variables

There are currently no required environment variables but there are optional environment variables.

Optional Environment Variables

Authentication Options

GUZZLE_AUTH_USERNAME

This is the authentication username that will be used for all default Guzzle requests. This value will only be consulted when resolving a HandlerGuzzle instance from the HandlerGuzzleFactory class.

It will not affect HandlerGuzzle objects that have been instantiated directly.

If either the username or password have been provided and are non-empty then the authentication credentials will be set.

Default is null.

GUZZLE_AUTH_PASSWORD

This is the authentication password that will be used for all default Guzzle requests. This value will only be consulted when resolving a HandlerGuzzle instance from the HandlerGuzzleFactory class.

It will not affect HandlerGuzzle objects that have been instantiated directly.

If either the username or password have been provided and are non-empty then the authentication credentials will be set.

Default is null.

GUZZLE_AUTH_METHOD

This is the authentication method that will be used for all default Guzzle requests. This value will only be consulted when resolving a HandlerGuzzle instance from the HandlerGuzzleFactory class.

It will not affect HandlerGuzzle objects that have been instantiated directly.

Allowed values are null (HTTP Basic Authentication), digest, and ntlm.

Default is null.

Client Options

GUZZLE_BASE_URI

This is the base URI that will be used for all default Guzzle requests. This value is only consulted when resolving a HandlerGuzzle instance from the HandlerGuzzleFactory class.

It will not affect HandlerGuzzle objects that have been instantiated directly.

Default is null.

Other Request Options

GUZZLE_JSON_ASSOC_ARRAY

Should Guzzle return a JSON response body as an associative array when using the resolveResponseBody() method in HandlerGuzzle?

The default in Guzzle 5.x was to return a response body as an associative array when using the json() response method. Guzzle 6.x does not have a json() response method so this can be set to true in order to maintain the original functionality.

Default is false (i.e. return the JSON response as a StdClass instance).

GUZZLE_VERIFY_CERT

Should Guzzle verify the server certificate during HTTPS requests? This typically requires the CA cert of the server's chain to be installed on the machine performing the Guzzle request.

During development, this can be set to false safely. You may also want to set this to false when using WAMP since WAMP tends to have issues with Guzzle when attempting to verify the server certificate.

Default is true.

Resources

Guzzle


All versions of laravel-guzzle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 csun-metalab/laravel-guzzle contains the following files

Loading the files please wait ....