PHPackages                             leverage-php/client - 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. leverage-php/client

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

leverage-php/client
===================

HTTP clients for common scenarios.

v1.0.0(3y ago)06MITPHP

Since Aug 31Pushed 3y agoCompare

[ Source](https://github.com/leverage-php/client)[ Packagist](https://packagist.org/packages/leverage-php/client)[ RSS](/packages/leverage-php-client/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Leverage HTTP Clients
=====================

[](#leverage-http-clients)

Clients for common HTTP scenarios.

The first/only/best example being a JSON client that assumes JSON in the request payload and in the response body.

PSR compliant with headers set automatically.

Usage
-----

[](#usage)

```
use Leverage\Client\JsonClient;
use Leverage\Client\JsonRequest;
use Leverage\Client\JsonResponse;

$request = new JsonRequest(
    method: 'GET',
    uri: 'https://example.com',
    data: [
        'key' => 'val',
    ],
);
$client = new JsonClient;
$response = $client->send($request);

```

Dev
---

[](#dev)

This repo assumes you have a suitable version of Docker available.

Copy `.env.dist` to `.env`. It's very unlikely you'll need to update these values.

Run `./bin/composer install`.

The standard Leverage Toolchain scripts are available in `./vendor/bin/`.

Make sure to run `./vendor/bin/verify` before you push.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/752c7d73a901e4127eb085e33a61da585b8616b0effa0e9602fb52ea1d33c012?d=identicon)[avfletch](/maintainers/avfletch)

---

Top Contributors

[![avfletch](https://avatars.githubusercontent.com/u/25877316?v=4)](https://github.com/avfletch "avfletch (1 commits)")

### Embed Badge

![Health badge](/badges/leverage-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/leverage-php-client/health.svg)](https://phpackages.com/packages/leverage-php-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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