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. [Database &amp; ORM](/categories/database)
4. /
5. n1215/eloquent-bulk-save

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

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

bulk insert multiple records using Eloquent Model.

v0.1.0(8y ago)925.9k—8.8%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 2d 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 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

2924d 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

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[awobaz/compoships

Laravel relationships with support for composite/multiple keys

1.2k11.7M47](/packages/awobaz-compoships)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.3M19](/packages/bavix-laravel-wallet)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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