PHPackages                             n1215/eloquent-bulk-save - 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. n1215/eloquent-bulk-save

ActiveLibrary

n1215/eloquent-bulk-save
========================

bulk insert multiple records using Eloquent Model.

v0.1.0(7y ago)924.2k↓28.9%2MITPHPPHP &gt;=7.0.0CI failing

Since Jul 2Pushed 6y agoCompare

[ Source](https://github.com/n1215/eloquent-bulk-save)[ Packagist](https://packagist.org/packages/n1215/eloquent-bulk-save)[ RSS](/packages/n1215-eloquent-bulk-save/feed)WikiDiscussions master Synced 1mo ago

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

Eloquent Bulk Save
==================

[](#eloquent-bulk-save)

[![Latest Stable Version](https://camo.githubusercontent.com/5eafce734d27e5f9854a9962646a47e63ea61c52e144da0919da46607370c939/68747470733a2f2f706f7365722e707567782e6f72672f6e313231352f656c6f7175656e742d62756c6b2d736176652f762f737461626c65)](https://packagist.org/packages/n1215/eloquent-bulk-save)

This library contains a trait that enables \\Illuminate\\Database\\Eloquent\\Model to bulk insert multiple records in one query. Unlike in the case of directly using \\Illuminate\\Database\\Query\\Builder::insert(), this trait method fires each eloquent model events like eloquent.creating, eloquent.saving, and so on.

Usage
-----

[](#usage)

```
// 1. change your eloquent model class to use the trait
class YouModel extends \Illuminate\Database\Eloquent\Model
{
    use \N1215\EloquentBulkSave\BulkInsert;
}

// 2. create model collection (you can also use Illuminate\Database\Eloquent\Collection)
$models = \Illuminate\Support\Collection::make([
    new YourModel($attributes1),
    new YourModel($attributes2),
    ...
]);

// 3. use bulkInsert() static method
YourModel::bulkInsert($models);
```

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

2878d ago

### Community

Maintainers

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

---

Top Contributors

[![n1215](https://avatars.githubusercontent.com/u/2157593?v=4)](https://github.com/n1215 "n1215 (3 commits)")[![AlwinGarside](https://avatars.githubusercontent.com/u/193043?v=4)](https://github.com/AlwinGarside "AlwinGarside (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/n1215-eloquent-bulk-save/health.svg)

```
[![Health](https://phpackages.com/badges/n1215-eloquent-bulk-save/health.svg)](https://phpackages.com/packages/n1215-eloquent-bulk-save)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)

PHPackages © 2026

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