PHPackages                             sabercode/laravel-batch-update - 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. sabercode/laravel-batch-update

ActiveL

sabercode/laravel-batch-update
==============================

laravel批量更新mysql

v1.0.1(4y ago)03MITPHPPHP ^7.4CI failing

Since Oct 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/NephalemSaber/laravel-batchUpdate)[ Packagist](https://packagist.org/packages/sabercode/laravel-batch-update)[ RSS](/packages/sabercode-laravel-batch-update/feed)WikiDiscussions main Synced 1w ago

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

laravel批量更新mysql
================

[](#laravel批量更新mysql)

环境要求
----

[](#环境要求)

- PHP &gt; 7.0
- composer &gt; 2.0
- laravel &gt; 5.5

安装
==

[](#安装)

```
composer require NephalemSaber/laravel-batchUpdate -vvv

```

使用
--

[](#使用)

```
use Sabercode\LaravelBatchUpdate\BatchUpdate;
/*
 * string $table 表名
 * string $whereField 值不同条件字段名 如 id
 * array $data 更新数据二维数组 必须包含条件字段 如
 * [
 *    ['id'=>1,'name'=>2,'age'=>3]
 *    ['id'=>2,'name'=>3,'age'=>4]
 * ]
 * array $whereSame 值相同条件字段数组一维数组 默认为空数组 如
 *    ['a'=>7,'b'=>'users']
 * */
BatchUpdate::doUpdate($table,$data,$whereField,$whereSame);
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

1668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/659c680dfecbb4421decea65e32608e14d63701d9579bb39c423705873a4fcd3?d=identicon)[SaberCode](/maintainers/SaberCode)

---

Top Contributors

[![NephalemSaber](https://avatars.githubusercontent.com/u/25915615?v=4)](https://github.com/NephalemSaber "NephalemSaber (11 commits)")

### Embed Badge

![Health badge](/badges/sabercode-laravel-batch-update/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

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

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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