PHPackages                             aef/laravel-batch-requests - 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. aef/laravel-batch-requests

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

aef/laravel-batch-requests
==========================

A Laravel package for efficiently handling multiple API requests in a single batch operation, reducing network overhead and improving performance for bulk operations.

v1.1.0(9mo ago)01.9k↓33.3%MITPHPPHP ^8.2

Since Aug 1Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/ahmed-abdelnaby-fahmy/laravel-batch-requests)[ Packagist](https://packagist.org/packages/aef/laravel-batch-requests)[ RSS](/packages/aef-laravel-batch-requests/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Batch Requests
======================

[](#laravel-batch-requests)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5bd5453e06f1c917cec9382a2dff55275c26ea033b954047710f107b8615ca99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6165662f6c61726176656c2d62617463682d72657175657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aef/laravel-batch-requests)[![Total Downloads](https://camo.githubusercontent.com/2257329c9394ef20e22cc781ed2dae77db05044c48c3bf9601b52ba087783b55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6165662f6c61726176656c2d62617463682d72657175657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aef/laravel-batch-requests)[![License](https://camo.githubusercontent.com/667228afdd9895b671eecfd6e3ca00d3a513530a21286037dba7f83129fb6905/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d49542f626c7565)](https://camo.githubusercontent.com/667228afdd9895b671eecfd6e3ca00d3a513530a21286037dba7f83129fb6905/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d49542f626c7565)

A Laravel package for efficiently handling multiple API requests in a single batch operation, reducing network overhead and improving performance for bulk operations.

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

[](#installation)

You can install the package via composer:

```
composer require aef/laravel-batch-requests
```

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="LaravelBatchRequests\BatchRequestServiceProvider" --tag="config"
```

This will create a config/batch-requests.php file where you can modify the package settings.

Usage
=====

[](#usage)

```
use LaravelBatchRequests\Http\Controllers\BatchRequestController;

Route::post('batch', [BatchRequestController::class, 'process']);
```

To use the batch request functionality, send a POST request to the `/api/batch` endpoint with a JSON payload containing an array of requests:

```
{
  "requests": [
    {
      "id": "get-user",
      "method": "GET",
      "uri": "/api/users/1",
      "headers": {
        "Accept": "application/json"
      }
    },
    {
      "id": "create-post",
      "method": "POST",
      "uri": "/api/posts",
      "parameters": {
        "title": "New Post",
        "content": "This is the content of the new post."
      },
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json"
      }
    }
  ]
}
```

The response will contain the results of all the batched requests, with the body returned as parsed JSON:

```
{
  "results": [
    {
      "id": "get-user",
      "status": 200,
      "headers": {
        "Content-Type": "application/json"
      },
      "body": {
        "id": 1,
        "name": "John Doe"
      }
    },
    {
      "id": "create-post",
      "status": 201,
      "headers": {
        "Content-Type": "application/json"
      },
      "body": {
        "id": 101,
        "title": "New Post",
        "content": "This is the content of the new post."
      }
    }
  ]
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance58

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~191 days

Total

3

Last Release

273d ago

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v1.1.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![ahmed-abdelnaby-fahmy](https://avatars.githubusercontent.com/u/40221156?v=4)](https://github.com/ahmed-abdelnaby-fahmy "ahmed-abdelnaby-fahmy (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aef-laravel-batch-requests/health.svg)

```
[![Health](https://phpackages.com/badges/aef-laravel-batch-requests/health.svg)](https://phpackages.com/packages/aef-laravel-batch-requests)
```

###  Alternatives

[binaryk/laravel-restify

Laravel REST API helpers

651399.1k](/packages/binaryk-laravel-restify)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59152.2k](/packages/lomkit-laravel-rest-api)[wirechat/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

5434.7k](/packages/wirechat-wirechat)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10435.5k](/packages/georgeboot-laravel-echo-api-gateway)

PHPackages © 2026

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