PHPackages                             chenfeizhou/laravel-model-batch-insert - 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. [Database &amp; ORM](/categories/database)
4. /
5. chenfeizhou/laravel-model-batch-insert

ActiveLib[Database &amp; ORM](/categories/database)

chenfeizhou/laravel-model-batch-insert
======================================

Laravel 模型批量插入

00PHP

Since May 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/chenfeizhou/laravel-model-bath-insert)[ Packagist](https://packagist.org/packages/chenfeizhou/laravel-model-batch-insert)[ RSS](/packages/chenfeizhou-laravel-model-batch-insert/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-model-batch-insert
==========================

[](#laravel-model-batch-insert)

Laravel 模型数据批量插入

### 使用指南

[](#使用指南)

```
composer require chenfeizhou/laravel-model-batch-insert
php artisan vendor:publish --provider="Chenfeizhou\ModelBatch\ModelBatchServiceProvider"

```

使用
--

[](#使用)

```
// 模型中引用
class Example extends Model
{
    use Chenfeizhou\ModelBatch\Model\Concerns\ModelBathInsertTrait;
}

$data = [
    [
      'name' => 'zhangsan',
      'age'  => '14'
    ],
    [
      'name' => 'lisi',
      'age'  => '15'
    ]
 ];

Example::batchInsert($data);
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![chenfeizhou](https://avatars.githubusercontent.com/u/5843396?v=4)](https://github.com/chenfeizhou "chenfeizhou (6 commits)")

### Embed Badge

![Health badge](/badges/chenfeizhou-laravel-model-batch-insert/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M542](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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