PHPackages                             aswin/concurrent-laravel - 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. [API Development](/categories/api)
4. /
5. aswin/concurrent-laravel

ActiveLibrary[API Development](/categories/api)

aswin/concurrent-laravel
========================

A Laravel package for concurrent API execution

v2.0.0(1y ago)461[1 issues](https://github.com/aswinsasi/concurrent-laravel/issues)MITPHPPHP ^8.0

Since Jan 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aswinsasi/concurrent-laravel)[ Packagist](https://packagist.org/packages/aswin/concurrent-laravel)[ RSS](/packages/aswin-concurrent-laravel/feed)WikiDiscussions main Synced 1mo ago

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

🚀 Concurrent Laravel - Execute Multiple API Requests in Parallel
================================================================

[](#-concurrent-laravel---execute-multiple-api-requests-in-parallel)

[![Latest Version](https://camo.githubusercontent.com/ee93cd022cb12d8d35e56cf358b46524b32229c0e13738fd4efc2c602bdf1b60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617377696e2f636f6e63757272656e742d6c61726176656c2e737667)](https://packagist.org/packages/aswin/concurrent-laravel)
[![Laravel](https://camo.githubusercontent.com/96f627285c7adfa1cd7c3ca009cd226f4522ff1593e36061f6132d0001ebed15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392532422d626c7565)](https://laravel.com)
[![License](https://camo.githubusercontent.com/daf73723b521bd0c90fe22eaaf87c90a019a7914a0cfbb0fab2191c92f351398/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f617377696e736173692f636f6e63757272656e742d6c61726176656c)](LICENSE)

📖 Introduction
--------------

[](#-introduction)

**Concurrent Laravel** is a Laravel package that enables you to execute multiple API requests **concurrently** using Guzzle, significantly reducing response times and improving performance.

### **🔹 Features**

[](#-features)

✅ **Concurrent API Execution** – ✅ **Supports GET &amp; POST Methods** – Pass request data for POST requests.
✅ **Handles Large API Requests** – Process 100+ API calls efficiently.
✅ **Error Handling** – Returns failed responses with error messages.

---

📌 Installation
--------------

[](#-installation)

Require the package via Composer:

```
composer require aswin/concurrent-laravel
```

Laravel will **automatically register** the service provider and facade.
If auto-discovery is disabled, manually add the following to `config/app.php`:

```
'providers' => [
    Vendor\ConcurrentLaravel\ConcurrentServiceProvider::class,
],

'aliases' => [
    'ConcurrentExecutor' => Vendor\ConcurrentLaravel\Facades\ConcurrentExecutor::class,
],
```

---

⚡ Usage Example
---------------

[](#-usage-example)

### **Basic Example: Execute Multiple API Calls**

[](#basic-example-execute-multiple-api-calls)

```
use ConcurrentExecutor;

$requests = [
    ['method' => 'GET', 'url' => 'https://jsonplaceholder.typicode.com/posts'],
    ['method' => 'GET', 'url' => 'https://jsonplaceholder.typicode.com/users']
];

$responses = ConcurrentExecutor::execute($requests);

print_r($responses);
```

---

📡 API Integration Example
-------------------------

[](#-api-integration-example)

### **Controller Example**

[](#controller-example)

Create a controller to **fetch multiple APIs concurrently**:

```
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use ConcurrentExecutor;

class ConcurrentApiController extends Controller
{
    public function fetchConcurrentApis()
    {
        $requests = [
            ['method' => 'GET', 'url' => 'https://jsonplaceholder.typicode.com/posts'],
            ['method' => 'GET', 'url' => 'https://jsonplaceholder.typicode.com/users']
        ];

        $responses = ConcurrentExecutor::execute($requests);

        return response()->json($responses);
    }
}
```

### **Define API Route**

[](#define-api-route)

```
Route::get('/fetch-concurrent-apis', [ConcurrentApiController::class, 'fetchConcurrentApis']);
```

Now, making a **GET request** to `/api/fetch-concurrent-apis` will execute API calls **concurrently**.

---

🚀 Advanced Usage: Dynamic API Requests
--------------------------------------

[](#-advanced-usage-dynamic-api-requests)

If you have **multiple dynamic API calls**, you can generate them dynamically:

```
$apiUrls = [
    'https://jsonplaceholder.typicode.com/posts',
    'https://jsonplaceholder.typicode.com/users',
    'https://jsonplaceholder.typicode.com/comments'
];

$requests = array_map(fn ($url) => ['method' => 'GET', 'url' => $url], $apiUrls);

$responses = ConcurrentExecutor::execute($requests);
```

---

🏗 Contributing
--------------

[](#-contributing)

We welcome contributions! Please **submit an issue** for bug reports or **open a pull request**.

---

📝 License
---------

[](#-license)

This package is open-source and licensed under the [MIT License](LICENSE).

---

📡 Contact &amp; Support
-----------------------

[](#-contact--support)

- **GitHub Issues**:
- **Email**: [aswin@github.com](mailto:aswinfear01@gmail.com)

🚀 **Speed up your Laravel API calls with Concurrent Laravel!** 🔥

```

---

## **📌 Summary of Features in This README**
✅ **Includes description, installation, and usage**
✅ **Example for API calls (basic & dynamic)**
✅ **Route definition for API integration**
✅ **Contribution & license section**
✅ **GitHub-friendly formatting**

---

### **🚀 Next Steps**
- **Do you need a `CHANGELOG.md` for version tracking?**
- **Want to add GitHub Actions for automatic testing?**

Let me know if you need further modifications! 🚀🔥

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

473d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60515ecdaad77bfafd15ba75eb885d307415b566d0ba759c9cc3df4bbf0e0927?d=identicon)[aswinsasi](/maintainers/aswinsasi)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aswin-concurrent-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/aswin-concurrent-laravel/health.svg)](https://phpackages.com/packages/aswin-concurrent-laravel)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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