Download the PHP package jcsilkey/laravel-guzzle without Composer

On this page you can find all versions of the php package jcsilkey/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 - Laravel Guzzle HTTP Client Manager

This package provides a mechanism to configure one or more Guzzle clients for use in an application.

Installation

Install with:

composer require jcsilkey/laravel-guzzle

With auto package discovery, the ServiceProvider is automatically registered. No facade is or ever will be provided because facades are evil.

Publish the configuration:

php artisan vendor:publish --tag="config"

Usage

This package registers 2 services:

GuzzleHttp\ClientInterface

Resolves to the default client defined in the package configuration.

JCS\LaravelGuzzle\GuzzleClientRegistry

Resolves to the client registry, which holds all clients. GuzzleClientRegistry@getClient() will return the default client. Pass a client name to get a specific client, GuzzleClientRegistry@getClient($clientName).

Configuration

The default configuration is minimal:

default

The name of the default client. If this value is null, then a client named 'default' will be created using the settings defined in global. If a name is given, then it must be a valid client defined in clients.

global

Default configuration options to be used for all clients. Any valid Guzzle configuration option can be used.

clients

An array of named clients, along with configuration options for each. For example:

Client options are merged with the global options defined above (shallow merge, top level keys only).

Configuring Handlers and Middlewares

To define a custom Handler and Guzzle Middleware stack, use the normal guzzle handler option to specify a handler class and a special middleware option that is an array of middlewares to be added to your client. Each middleware definition is itself an array consisting of a callable and the name to register for the middleware. For example:

If no handler is specified, one will be automatically selected for you based on your PHP configuration.

If no middleware are defined, your Guzzle client will be created using the default


All versions of laravel-guzzle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
guzzlehttp/guzzle Version ^6.3
illuminate/support Version ^5.6
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 jcsilkey/laravel-guzzle contains the following files

Loading the files please wait ....