PHPackages                             jetimob/http-php-laravel - 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. jetimob/http-php-laravel

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

jetimob/http-php-laravel
========================

Guzzle wrapper to abstract requests that must be authorized through OAuth2.0

2.2.2(8mo ago)012.7k↓36.7%312MITPHPPHP ^8.1

Since Mar 1Pushed 8mo ago4 watchersCompare

[ Source](https://github.com/jetimob/http-php-laravel)[ Packagist](https://packagist.org/packages/jetimob/http-php-laravel)[ RSS](/packages/jetimob-http-php-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (19)Used By (12)

http-php-laravel
================

[](#http-php-laravel)

[![CI status](https://github.com/jetimob/http-php-laravel/actions/workflows/ci.yml/badge.svg)](https://github.com/jetimob/http-php-laravel/actions/workflows/ci.yml/badge.svg)[![Conventional Commits](https://camo.githubusercontent.com/90d8aeee02dec6f5ceeb0423b9ba1aea93519cadbfcb13d62770ac6550780d6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e76656e74696f6e616c253230436f6d6d6974732d312e302e302d79656c6c6f772e737667)](https://conventionalcommits.org)

Essa biblioteca funciona como um envelope em torno do [Guzzle](https://docs.guzzlephp.org/) para facilitar a troca de requisições que precisam de alguma forma de autorização (como o [OAuth 2.0](https://tools.ietf.org/html/rfc6749)) e para automatizar a deserialização das respostas HTTP em instâncias de objetos que representam essas respostas.

> Para mais informações sobre a deserialização automática de respostas para classes, olhar o método [complexResponseWithArrayTyping](./tests/Feature/SimpleRequestTest.php).

Toda parte fazer a requisição HTTP é delegada ao Guzzle, sendo assim, a maioria das configurações utilizadas pode ser retirada da [documentação oficial](https://docs.guzzlephp.org/).

OAuth 2.0
---------

[](#oauth-20)

### Flows

[](#flows)

#### Client Credentials

[](#client-credentials)

#### Authorization code

[](#authorization-code)

Configuração
------------

[](#configuração)

Serialização
------------

[](#serialização)

**Importante!**

Se o *OPcache* for utilizado, a opção `opcache.save_comments` precisa ser ativada, i.e.: `opcache.save_comments=1`.
Isso é necessário para que os vetores de uma resposta possam ser automaticamente deserializados com um PHP docblock. Por exemplo, considere o código abaixo:

```
/**
 * @var \Jetimob\Http\Response[] $response_array
 */
protected array $response_array = [];
```

Se essa declaração estiver dentro de uma classe que estenda `\Jetimob\Http\Response` e a resposta HTTP conter uma propriedade nomeada `response` do tipo `array`, ela será automaticamente deserializada num vetor de objetos do tipo declarado no docblock (`\Jetimob\Http\Response` nesse caso).
**Para funcionar corretamente, o tipo da variável definida deve usar a trait `Jetimob\Http\Traits\Serializable`**.

A definição do tipo da variável no docblock **precisa** estar na sua forma completa, isso é, `\Jetimob\Http\Response`e **não** `Response` junto de uma importação de namespace `use Jetimob\Http\Response;`.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance58

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 88.7% 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 ~109 days

Recently: every ~275 days

Total

16

Last Release

269d ago

Major Versions

v0.2.0 → v1.0.02021-04-27

v1.4.0 → v2.0.02022-08-18

PHP version history (4 changes)v0.2.0PHP ^7.4|8.\*

v1.3.0PHP ^7.4 || ^8.0

v2.0.0PHP ^8.0

v2.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e5fb8c906109627d61798c5281a81910d803016af5533cf3d51c8c4c2bc7741?d=identicon)[jetimob](/maintainers/jetimob)

---

Top Contributors

[![alanwgt](https://avatars.githubusercontent.com/u/15879871?v=4)](https://github.com/alanwgt "alanwgt (55 commits)")[![medinaalexandre](https://avatars.githubusercontent.com/u/20534808?v=4)](https://github.com/medinaalexandre "medinaalexandre (3 commits)")[![marcioal1991](https://avatars.githubusercontent.com/u/6003365?v=4)](https://github.com/marcioal1991 "marcioal1991 (2 commits)")[![00F100](https://avatars.githubusercontent.com/u/8130040?v=4)](https://github.com/00F100 "00F100 (1 commits)")[![iamgabrieloliveira](https://avatars.githubusercontent.com/u/100051571?v=4)](https://github.com/iamgabrieloliveira "iamgabrieloliveira (1 commits)")

---

Tags

httplaraveloauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jetimob-http-php-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/jetimob-http-php-laravel/health.svg)](https://phpackages.com/packages/jetimob-http-php-laravel)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[kozz/laravel-guzzle-provider

Guzzle 5/6 Service Provider for Laravel

621.1M2](/packages/kozz-laravel-guzzle-provider)[laravel-shift/curl-converter

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

935.3k](/packages/laravel-shift-curl-converter)[huang-yi/shadowfax

Run Laravel on Swoole.

3511.7k](/packages/huang-yi-shadowfax)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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