PHPackages                             usamamuneerchaudhary/laraclient - 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. usamamuneerchaudhary/laraclient

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

usamamuneerchaudhary/laraclient
===============================

Package that simplifies the process of working with multiple APIs in Laravel.

1.2(3y ago)35143[1 PRs](https://github.com/usamamuneerchaudhary/laraclient/pulls)MITPHPPHP ^8.1

Since Mar 26Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/usamamuneerchaudhary/laraclient)[ Packagist](https://packagist.org/packages/usamamuneerchaudhary/laraclient)[ RSS](/packages/usamamuneerchaudhary-laraclient/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

[![image](https://camo.githubusercontent.com/666750b561ef76934cf04c31d0027bd1428b890a2dd9cee256a4ab5be0594e45/68747470733a2f2f7777772e6c696e6b706963747572652e636f6d2f712f6c617261636c69656e742e6a7067)](https://thewebtier.com)

[![Latest Version on Packagist](https://camo.githubusercontent.com/72f620e133dbbbe898a859aa088463f5cc7946e49572f50bc375ed0450f4b88f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7573616d616d756e6565726368617564686172792f6c617261636c69656e743f7374796c653d666c61742d737175617265)](https://packagist.org/packages/usamamuneerchaudhary/laraclient)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2cf5d0fa8f7d423d08a4776a0a768d15a30bb733a561deb727be8eed5b15a2fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7573616d616d756e6565726368617564686172792f6c617261636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/usamamuneerchaudhary/laraclient/?branch=main)[![CodeFactor](https://camo.githubusercontent.com/ff5d7503506e9157e7b043ffc49daecde64da38a71b39053a699aa58b0a1ffd9/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f7573616d616d756e6565726368617564686172792f6c617261636c69656e742f6261646765)](https://www.codefactor.io/repository/github/usamamuneerchaudhary/laraclient)[![Build Status](https://camo.githubusercontent.com/7d212c57191ff0040aa0cc2ace0d8427df19c5493bbf40ed081f392c2f502083/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7573616d616d756e6565726368617564686172792f6c617261636c69656e742f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/usamamuneerchaudhary/laraclient/build-status/main)[![Code Intelligence Status](https://camo.githubusercontent.com/ff9889d9a662dd8f1498b6024a3ba1589982eeb0d0abc98a0604d5f5b74e5520/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7573616d616d756e6565726368617564686172792f6c617261636c69656e742f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d61696e)](https://scrutinizer-ci.com/code-intelligence)[![Total Downloads](https://camo.githubusercontent.com/0f144ecb7b5073365db23289e70404f31409dca11ef29dee36af89c439b59284/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7573616d616d756e6565726368617564686172792f6c617261636c69656e743f7374796c653d666c61742d737175617265)](https://packagist.org/packages/usamamuneerchaudhary/laraclient)[![Licence](https://camo.githubusercontent.com/8eab6b7ecd42dc9981809ecec2101522fe3ebd5d7180a427ac26348d479617ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7573616d616d756e6565726368617564686172792f6c617261636c69656e743f7374796c653d666c61742d737175617265)](https://github.com/usamamuneerchaudhary/laraclient/blob/HEAD/LICENSE.md)

Introduction
------------

[](#introduction)

Lara Client simplifies the process of working with APIs in Laravel, making it easy to handle authentication, rate limiting, and error handling. It allows to set up several API connections in a central configuration file, specifying the credentials for each connection. The package also includes a cache layer to speed up requests, and a logging system to track API requests and responses for debugging purposes. With Lara Client, developers can quickly integrate multiple APIs into their Laravel applications, reducing development time and effort, and making it easier to manage API integrations over time.

Here's a quick example of what you can do in your models to enable tagging:

- *This package supports Laravel 10*
- *Minimum PHP v8.1 supported*

```
namespace App\Http\Controllers;

use Usamamuneerchaudhary\LaraClient\LaraClient;

class ApiController extends Controller
{
    $client = new LaraClient('weatherapi');
    $response = $client->get('current.json', ['q' => 'london']);
    $currentWeather = $response->getData();

    $client2 = new LaraClient('geodb');
    $georesponse = $client->get('countries');
    $countries = $response->getData();

    ....
    ....

}
```

Installation
------------

[](#installation)

You can install the package via composer:

`composer require usamamuneerchaudhary/laraclient`

Run Migrations
--------------

[](#run-migrations)

Once the package is installed, you can run migrations,

`php artisan migrate`

Publish Config File
-------------------

[](#publish-config-file)

```
 php artisan vendor:publish --provider="Usamamuneerchaudhary\LaraClient\LaraClientServiceProvider" --tag="config"

```

This will create a `lara_client.php` file, where you can define multiple third party API connections.

Service Provider
----------------

[](#service-provider)

Don't forget to add the ServiceProvider in `app.php`:

```
\Usamamuneerchaudhary\LaraClient\LaraClientServiceProvider::class,

```

Logging &amp; Publish Views
---------------------------

[](#logging--publish-views)

We're using a logging table to store requests and responses, you can access this by the following route:

```
http://yourwebsite.com/laraclient/logs

//to access logs for any specific endpoint
http://yourwebsite.com/laraclient/logs?endpoint=https://weatherapi-com.p.rapidapi.com/current.json

```

Tutorial
--------

[](#tutorial)

[How to handle multiple API connections in Laravel](https://thewebtier.com/how-to-handle-multiple-api-connections-in-laravel)

Tests
-----

[](#tests)

`composer test`

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Laravel](https://laravel.com)
- [Usama Muneer](https://usamamuneer.me)
- [All Contributors](https://github.com/usamamuneerchaudhary/laraclient/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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 ~0 days

Total

3

Last Release

1196d ago

### Community

Maintainers

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

---

Top Contributors

[![usamamuneerchaudhary](https://avatars.githubusercontent.com/u/24513380?v=4)](https://github.com/usamamuneerchaudhary "usamamuneerchaudhary (23 commits)")[![Oxicode](https://avatars.githubusercontent.com/u/1320709?v=4)](https://github.com/Oxicode "Oxicode (1 commits)")

---

Tags

api-clientapi-resthttp-clienthttp-requestslaravelpackagephprest-apihttpapiguzzlehttphttpclientusamamuneerchaudharylaravel-client

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/usamamuneerchaudhary-laraclient/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

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

PHPackages © 2026

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