PHPackages                             grandgarage/api-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. grandgarage/api-client

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

grandgarage/api-client
======================

a simple rest api client for laravel

0.0.2(3y ago)039MITPHPPHP &gt;=7.4

Since Nov 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Grand-Garage/api-client)[ Packagist](https://packagist.org/packages/grandgarage/api-client)[ RSS](/packages/grandgarage-api-client/feed)WikiDiscussions main Synced 1mo ago

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

api-client
==========

[](#api-client)

A simple REST API client for laravel, supporting query parameters.

Install
-------

[](#install)

`composer require grandgarage/api-client`

How to use
----------

[](#how-to-use)

```
// Create request class
$baseUrl = 'https://my-domain.com/api/v1/'; // example domain
$token = 'c4164ac9-703b-4e6b-a3cc-715a0e4dfe7d'; // example token
$request = new Grandgarage\ApiClient\HttpRequest($baseUrl, $token);

// GET request - example
 /** @var \Illuminate\Http\JsonResponse $response */
$respone = $request->get('users', [], 'orderBy=desc', 'limit=1000');

// POST request - example
$body = ['name' => 'Max Mustermann'];
$request->post('users', json_encode($body));

// UPDATE request - example
$id = 1;
$body = ['name' => 'Hilde Musterfrau'];
$request->put('users/'.$id, json_encode($body));

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

1287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c69c47daf0bf686cba83e4cf1b504ab1f90f032f9fcc10a0b21f8245bb01c02?d=identicon)[murcoder](/maintainers/murcoder)

---

Top Contributors

[![murcoder](https://avatars.githubusercontent.com/u/9846632?v=4)](https://github.com/murcoder "murcoder (6 commits)")

---

Tags

apilaravelrest

### Embed Badge

![Health badge](/badges/grandgarage-api-client/health.svg)

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

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[illuminatech/data-provider

Allows easy build for DB queries from API requests

4413.3k](/packages/illuminatech-data-provider)[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)
