PHPackages                             rajbatch/batchquery - 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. rajbatch/batchquery

ActiveLibrary

rajbatch/batchquery
===================

This will help user to execute the batch query in their laravel projects.

v1.0(6y ago)357MITPHP

Since Jan 13Pushed 6y agoCompare

[ Source](https://github.com/rajmn/batchquery-package)[ Packagist](https://packagist.org/packages/rajbatch/batchquery)[ RSS](/packages/rajbatch-batchquery/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Batch query for laravel (BULK Query)
====================================

[](#batch-query-for-laravel-bulk-query)

This will help user to execute the batch(bulk) query in their laravel projects.
-------------------------------------------------------------------------------

[](#this-will-help-user-to-execute-the-batchbulk-query-in-their-laravel-projects)

[![Latest Stable Version](https://camo.githubusercontent.com/c1424c489191d6ad92b065b77a9d33db6ab232f9223290595f8bb77b9147163c/68747470733a2f2f706f7365722e707567782e6f72672f72616a62617463682f626174636871756572792f762f737461626c65)](https://packagist.org/packages/rajbatch/batchquery)[![License](https://camo.githubusercontent.com/702a6446ed5935972f8c5ed0f0554d79166a0253b872eaf301634da3e1f82e0e/68747470733a2f2f706f7365722e707567782e6f72672f72616a62617463682f626174636871756572792f6c6963656e7365)](https://packagist.org/packages/rajbatch/batchquery)[![Total Downloads](https://camo.githubusercontent.com/654e9722d6b26a1044eeb8b3e6503994fd5cc5053efe654d70893ead15c67c31/68747470733a2f2f706f7365722e707567782e6f72672f72616a62617463682f626174636871756572792f646f776e6c6f616473)](https://packagist.org/packages/rajbatch/batchquery)[![Daily Downloads](https://camo.githubusercontent.com/dbf261637ad7cb8bbab6876ac58e66994be0690d0c2bda18b3cca11e81e335e3/68747470733a2f2f706f7365722e707567782e6f72672f72616a62617463682f626174636871756572792f642f6461696c79)](https://packagist.org/packages/rajbatch/batchquery)

1. Easy to Install.
2. Easy to execute.
3. Consume very little space, so your project does not get heavy

1. Install
----------

[](#1-install)

`composer require rajbatch/batchquery`

**Batch(bulk) UPDATE**\*\*\*\*\*
================================

[](#batchbulk-update)

#### Important parameter needs to be set

[](#important-parameter-needs-to-be-set)

```
 1. $table = "your table name where update";
 2. $index = 'user_id';  // (NOTE: $index field must exist in the $data array.
                         //  $index performs like WHERE clause to identify
                         //  where needs to update the given value  )

 3. $set   = ['column1','column2];  // (column name to update)
 4. $data  = [
         [
             'user_id'=>1,
             'column1'  =>'column1_value',
             'column2'  =>'column2_value'
         ],
         [
             'user_id'=>2,
             'column1'  =>'column1',
             'column2'  =>'column2_value'
         ],
         [
             'user_id'=>3,
             'column1'  =>'column1',
             'column2'  =>'column2_value'
         ],
     ];
```

### 2. Controller

[](#2-controller)

```
use Rajbatch\Batchquery\Batchquery;
```

### 3. In Controller function

[](#3-in-controller-function)

```
      $batch = new Batchquery();
      $table = "your table name where update";
      $index = 'user_id';
      $set   = ['column1'];
      $data  = [
          [
              'user_id'=>1,
              'column1'  =>'column1_value',
              'column2'  =>'column2_value'
          ],
          [
              'user_id'=>2,
              'column1'  =>'column1',
              'column2'  =>'column2_value'
          ],
          [
              'user_id'=>3,
              'column1'  =>'column1',
              'column2'  =>'column2_value'
          ],
      ];
      $response = $batch->batchUpdate($index,$table,$set,$data);
```

**Batch(bulk) INSERT**\*\*\*\*\*
================================

[](#batchbulk-insert)

#### Important parameter needs to be set

[](#important-parameter-needs-to-be-set-1)

```
 1. $table = "your table name where insert";
 2. $data  = [
         [
             'user_id'=>1,
             'column1'  =>'column1_value',
             'column2'  =>'column2_value'
         ],
         [
             'user_id'=>2,
             'column1'  =>'column1',
             'column2'  =>'column2_value'
         ],
         [
             'user_id'=>3,
             'column1'  =>'column1',
             'column2'  =>'column2_value'
         ],
     ];
```

### 2. Controller

[](#2-controller-1)

```
use Rajbatch\Batchquery\Batchquery;
```

### 3. In Controller function

[](#3-in-controller-function-1)

```
      $batch = new Batchquery();
      $table = "your table name where insert";
      $data  = [
          [
              'user_id'=>1,
              'column1'  =>'column1_value',
              'column2'  =>'column2_value'
          ],
          [
              'user_id'=>2,
              'column1'  =>'column1',
              'column2'  =>'column2_value'
          ],
          [
              'user_id'=>3,
              'column1'  =>'column1',
              'column2'  =>'column2_value'
          ],
      ];
      $response = $batch->batchInsert($table,$data);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2315d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49806251?v=4)[rajmn](/maintainers/rajmn)[@rajmn](https://github.com/rajmn)

---

Top Contributors

[![rajmn](https://avatars.githubusercontent.com/u/49806251?v=4)](https://github.com/rajmn "rajmn (10 commits)")

### Embed Badge

![Health badge](/badges/rajbatch-batchquery/health.svg)

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

PHPackages © 2026

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