PHPackages                             rap2hpoutre/jacky - 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. rap2hpoutre/jacky

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

rap2hpoutre/jacky
=================

Opinionated REST JSON HTTP API client for laravel

v0.0.7(10y ago)174.4k6[3 issues](https://github.com/rap2hpoutre/jacky/issues)MITPHPPHP &gt;=5.5.0

Since Dec 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rap2hpoutre/jacky)[ Packagist](https://packagist.org/packages/rap2hpoutre/jacky)[ RSS](/packages/rap2hpoutre-jacky/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Jacky
=====

[](#jacky)

![Packagist](https://camo.githubusercontent.com/74a107a890df2c225ed6b46922508a8221482a7d79e3703001701b0ebee36395/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261703268706f757472652f6a61636b792e737667)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/217991d01557c5f6d3de8a11b65a84c63281a0691a20569d59b10a699c22067f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7261703268706f757472652f6a61636b792e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rap2hpoutre/jacky)[![Quality Score](https://camo.githubusercontent.com/9959a19da6ad57f8eb99bf2b397a53702a193a9ecf8b835ec943491f59922967/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7261703268706f757472652f6a61636b792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jacky/nestor)[![SensioLabsInsight](https://camo.githubusercontent.com/fefd288e27ab953a17083c7f3081224f686ff5193e8271467ba1bf869a0afb22/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32376164636432662d323064652d343535352d383735332d3365636537656532343439352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/27adcd2f-20de-4555-8753-3ece7ee24495)

JSON API Client for Laravel and Lumen. It's basically just a [Guzzle](https://github.com/guzzle/guzzle) wrapper for JSON, because Guzzle [does not care](http://stackoverflow.com/questions/30530172/guzzle-6-no-more-json-method-for-responses) about JSON anymore. And you can configure your endpoints once and for all in a [configuration file](https://github.com/rap2hpoutre/jacky/blob/master/src/config.php), could be useful if you work with different services.

Install
-------

[](#install)

Install via composer

```
composer require rap2hpoutre/jacky

```

Add Service Provider to `config/app.php` in `providers` section

```
Rap2hpoutre\Jacky\ServiceProvider::class,
```

Then add the facade in `aliases` section (optional)

```
'Jacky' => Rap2hpoutre\Jacky\Facade::class,
```

Publish configuration

```
php artisan vendor:publish

```

Usage
-----

[](#usage)

### Simple example

[](#simple-example)

Let's say foo API returns this on `GET /users/1`:

```
{
  "data": [{
    "name": "John Doe",
    "email": "john@example.com"
  }]
}
```

You may get the user like this:

```
$user_name = Jacky::get('foo', '/users/1')->data->first()->name;
```

### Not found example

[](#not-found-example)

Let's say foo API returns this on `GET /users/2` not found:

```
{
  "errors": [{
    "status": "404",
    "title":  "User not found :/"
  }]
}
```

You may display error title like this:

```
use Rap2hpoutre\Jacky\Exception\Http404Exception;

try {
    $user = Jacky::get('foo', '/users/1');
} catch (Http404Exception $e) {
    echo $e->errors->first()->title;
}
```

Configuration
-------------

[](#configuration)

You can learn more about configuration [here](https://github.com/rap2hpoutre/jacky/blob/master/src/config.php)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

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

Every ~10 days

Recently: every ~1 days

Total

7

Last Release

3802d ago

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

v0.0.2PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/849c3b70e82874c89e079738e4879e0eabb71d1a73f53e81b88c39a9b40f32ae?d=identicon)[rap2hpoutre](/maintainers/rap2hpoutre)

---

Top Contributors

[![rap2hpoutre](https://avatars.githubusercontent.com/u/1575946?v=4)](https://github.com/rap2hpoutre "rap2hpoutre (66 commits)")

---

Tags

api-clientguzzlejsonlaravellumenphphttpjsonapiclientlaravelrestlumenjacky

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rap2hpoutre-jacky/health.svg)

```
[![Health](https://phpackages.com/badges/rap2hpoutre-jacky/health.svg)](https://phpackages.com/packages/rap2hpoutre-jacky)
```

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59302.6k11](/packages/vinelab-http)[laragear/api-manager

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

162.2k](/packages/laragear-api-manager)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

161.5k1](/packages/openapi-openapi-sdk)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

188.0k1](/packages/meteocontrol-vcom-api-client)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.1k38](/packages/dreamfactory-df-core)

PHPackages © 2026

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