PHPackages                             kozz/laravel-guzzle-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. kozz/laravel-guzzle-provider

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kozz/laravel-guzzle-provider
============================

Guzzle 5/6 Service Provider for Laravel

7.3.0(2y ago)621.1M↓16.5%11[1 PRs](https://github.com/urakozz/laravel-guzzle/pulls)2MITPHPPHP ^7.2|^8.0

Since Aug 6Pushed 2y ago4 watchersCompare

[ Source](https://github.com/urakozz/laravel-guzzle)[ Packagist](https://packagist.org/packages/kozz/laravel-guzzle-provider)[ RSS](/packages/kozz-laravel-guzzle-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (2)

Laravel - Guzzle 6 (or 5) Service Provider
==========================================

[](#laravel---guzzle-6-or-5-service-provider)

[![Downloads](https://camo.githubusercontent.com/13aa8433c9442ad8a8cd074f9edb29893e7cc626e583e114814a348ee705c635/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f7a7a2f6c61726176656c2d67757a7a6c652d70726f76696465722e737667)](https://packagist.org/packages/kozz/laravel-guzzle-provider)[![Packagist](https://camo.githubusercontent.com/63f41173b042d7a148cd919be4783409efa8f883d5eedf4ad2e226a796658bba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6b6f7a7a2f6c61726176656c2d67757a7a6c652d70726f76696465722e737667)](https://packagist.org/packages/kozz/laravel-guzzle-provider)[![Version](https://camo.githubusercontent.com/51f94906525df71968f2000c4f743176ef580000fd6371a8afd18921c868ec81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f7a7a2f6c61726176656c2d67757a7a6c652d70726f76696465722e737667)](https://packagist.org/packages/kozz/laravel-guzzle-provider)

laravel guzzle service provider

Install With Composer:
----------------------

[](#install-with-composer)

### Guzzle ~5.0

[](#guzzle-50)

```
composer require kozz/laravel-guzzle-provider ~5.0
```

Or manualy in composer.json:

```
"require": {
    "kozz/laravel-guzzle-provider": "~5.0"
}
```

### Guzzle ~6.0

[](#guzzle-60)

```
composer require kozz/laravel-guzzle-provider ~6.0
```

Or manualy in composer.json:

```
"require": {
    "kozz/laravel-guzzle-provider": "~6.0"
}
```

Setup
-----

[](#setup)

### Laravel &gt;=5.5

[](#laravel-55)

This package supports auto discovery, so no configuration is required.

### Laravel &lt;5.5

[](#laravel-55-1)

#### Register Service Provider

[](#register-service-provider)

*/configs/app.php*

```
    ...
    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        ...

        /*
         * Application Service Providers...
         */
        ...
        'Kozz\Laravel\Providers\Guzzle'
    ],
```

#### Enable Facade

[](#enable-facade)

*/configs/app.php*

```
    ...
    'aliases' => [
        ...
        'Guzzle' => 'Kozz\Laravel\Facades\Guzzle'
    ],
```

Usage
-----

[](#usage)

### Send request

[](#send-request)

```
  $response = \Guzzle::get('https://google.com');
```

### Get instance

[](#get-instance)

```
    $client = app()->offsetGet('guzzle');
    $client = \Illuminate\Container\Container::getInstance()->offsetGet('guzzle');
    $client = \Kozz\Laravel\Facades\Guzzle::getFacadeRoot();
    $client = \Guzzle::getFacadeRoot();
```

### POST

[](#post)

```
$response = Guzzle::post(
    'https://httpbin.org/post',
    [
        'form_params' => [
            'id' => 222
        ]
    ]
);
```

#### Basic auth

[](#basic-auth)

```
$response = Guzzle::post(
    'https://httpbin.org/post',
    [
        'auth' => [ 'theUsername', 'thePassword'],
    ]
);
```

generates: `+"Authorization": "Basic dGhlVXNlcm5hbWU6dGhlUGFzc3dvcmQ="`

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 81.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~291 days

Total

13

Last Release

805d ago

Major Versions

v0.0.1 → 1.0.12015-04-16

1.0.1 → 5.02015-04-16

5.0 → 6.02015-06-03

6.1.4 → 7.0.02020-12-16

PHP version history (4 changes)v0.0.1PHP &gt;=5.4.0

6.0PHP &gt;=5.5.0

6.1.1PHP ^7.2.0

6.1.4PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f78e5a1e5128b31ba7dfedcc9a3ccfbc4852f5df1b79a54867aa377169968a1?d=identicon)[urakozz](/maintainers/urakozz)

---

Top Contributors

[![urakozz](https://avatars.githubusercontent.com/u/5797393?v=4)](https://github.com/urakozz "urakozz (35 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![romanstingler](https://avatars.githubusercontent.com/u/5576250?v=4)](https://github.com/romanstingler "romanstingler (2 commits)")[![BojanKogoj](https://avatars.githubusercontent.com/u/634075?v=4)](https://github.com/BojanKogoj "BojanKogoj (1 commits)")[![jakesylvestre](https://avatars.githubusercontent.com/u/6392429?v=4)](https://github.com/jakesylvestre "jakesylvestre (1 commits)")[![thbourlove](https://avatars.githubusercontent.com/u/1768066?v=4)](https://github.com/thbourlove "thbourlove (1 commits)")[![janolivermr](https://avatars.githubusercontent.com/u/11133832?v=4)](https://github.com/janolivermr "janolivermr (1 commits)")

---

Tags

guzzleguzzlehttplaravelphpphp7httplaravelGuzzle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kozz-laravel-guzzle-provider/health.svg)

```
[![Health](https://phpackages.com/badges/kozz-laravel-guzzle-provider/health.svg)](https://phpackages.com/packages/kozz-laravel-guzzle-provider)
```

###  Alternatives

[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

161.8k](/packages/laragear-api-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
