PHPackages                             carsdotcom/php-request-class - 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. carsdotcom/php-request-class

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

carsdotcom/php-request-class
============================

Structure the logic around Guzzle API requests into object-oriented classes

v1.6.1(7mo ago)224.4k↓25%1[2 issues](https://github.com/carsdotcom/php-request-class/issues)[1 PRs](https://github.com/carsdotcom/php-request-class/pulls)MITPHPPHP ^8.1CI passing

Since Jul 6Pushed 1mo ago15 watchersCompare

[ Source](https://github.com/carsdotcom/php-request-class)[ Packagist](https://packagist.org/packages/carsdotcom/php-request-class)[ RSS](/packages/carsdotcom-php-request-class/feed)WikiDiscussions development Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (32)Used By (0)

php-request-class
=================

[](#php-request-class)

Structure the logic around Guzzle API requests into object-oriented classes

What?
-----

[](#what)

We maintain an application that is reliant on dozens of REST APIs, most of which do not have SDKs.

We love [Guzzle](https://github.com/guzzle/guzzle)! But most of the documentation assumes that making a request is "easy," just a few lines of code.

But we've discovered in our own use that the structure around that Guzzle request can run into hundreds of lines, managing pre-requisites like authentication, converting data between our internal types and our partners' types, etc.

So we created `AbstractRequest` as a standardized way to:

1. Organize logic into classes.
2. Provide swappable traits for encoding and decoding (XML, JSON, forms, even simplified GraphQL!)
3. Log *everything* using Laravel's File facade
4. Cache using Laravel's Cache facade (with a simple automatic cache key generator)
5. Provide a structure for chainable prerequisites (like authentication)
6. Provide a structure for catching exceptions and parsing responses back into your internal logic
7. Let you defer decisions about call order or synchronous/asynchronous processing to the user of the request class

Running the Tests
-----------------

[](#running-the-tests)

Install the dev dependencies:

```
composer install
```

Then run phpunit from the root of the project:

```
./vendor/bin/phpunit
```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance59

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.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 ~58 days

Recently: every ~74 days

Total

15

Last Release

224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a20e6e10ced1433e8f6c8a137c3abd3897ed284d1c0e397ad656894b93ae9d47?d=identicon)[jwadhams](/maintainers/jwadhams)

![](https://www.gravatar.com/avatar/9c6c9dd822416d8cec97ed1b44d5f943aeb39b1adf2980cb819fc111c5cfaa61?d=identicon)[bbene](/maintainers/bbene)

---

Top Contributors

[![jwadhams](https://avatars.githubusercontent.com/u/1613739?v=4)](https://github.com/jwadhams "jwadhams (47 commits)")[![bbene](https://avatars.githubusercontent.com/u/502853?v=4)](https://github.com/bbene "bbene (9 commits)")[![skybluesofa](https://avatars.githubusercontent.com/u/1657128?v=4)](https://github.com/skybluesofa "skybluesofa (4 commits)")[![mattwills23](https://avatars.githubusercontent.com/u/26020585?v=4)](https://github.com/mattwills23 "mattwills23 (2 commits)")[![czedonis](https://avatars.githubusercontent.com/u/5823584?v=4)](https://github.com/czedonis "czedonis (1 commits)")[![czedonisDI](https://avatars.githubusercontent.com/u/20542149?v=4)](https://github.com/czedonisDI "czedonisDI (1 commits)")

---

Tags

phplaravelGuzzle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/carsdotcom-php-request-class/health.svg)

```
[![Health](https://phpackages.com/badges/carsdotcom-php-request-class/health.svg)](https://phpackages.com/packages/carsdotcom-php-request-class)
```

###  Alternatives

[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10435.5k](/packages/georgeboot-laravel-echo-api-gateway)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4983.9k](/packages/basement-chat-basement-chat)[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)

PHPackages © 2026

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