New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bogdanghervan/irradiate

Database wizardry on top of Laravel excellence.
6,540 2
Install
composer require bogdanghervan/irradiate
Latest Version:7.1.0
PHP:^7.2|^8.0
Laravel:6 – 12
Older releases:5
License:MIT
Last Updated:Jun 12, 2025
Links: GitHub  ·  Packagist
Maintainer: bogdanghervan

Laravel Irradiate

Database wizardry on top of Laravel excellence. This package comes with some goodies to work with data in bulk in Laravel, however it is incomplete since it only implements the MySQL and SQLite grammars (contribute).

Features

Bulk insert or update

This is achieved using INSERT ... ON DUPLICATE KEY UPDATE for MySQL and INSERT ... ON CONFLICT DO UPDATE for SQLite.

Buffered inserts

A service is provided that collects data in memory and flushes it to database when a threshold is reached.

Legacy features

  • Chunk results and use limit at the same time
  • (MySQL only) Retry starting database transaction when connection is lost (no longer necessary in newer Laravel versions)

Installation

Simply run this from the root of your Laravel project:

composer require bogdanghervan/irradiate

Compatibility

This package supports Laravel 6, 7, 8, 9, 10, 11, and 12.

Configuration

To start using the package within Laravel, add this to the list of providers in config/app.php:

'Irradiate\Database\DatabaseServiceProvider',

Or, for Laravel 5.5 and above (including Laravel 12), the package will be auto-discovered.

Additionally, all the models should inherit from \Irradiate\Database\Eloquent\Model. Ideally there should already be a generic base model at the application level that all concrete models extend from, so make that extend the base model within Irradiate.

You're good to go!

Limitations

MySQL and SQLite only.

Contributing

Pull requests are welcome. All contributions should follow the PSR-2 coding standard.

License

Irradiate is licensed under the MIT License.

Related Packages

laravel/database

Get Laravel database for your non laravel projects. Built on top of illuminate/d...

36,509 90
lumphp/laravel-database

The Illuminate Database package.

38 0
agungsugiarto/codeigniter4-eloquent

The Illuminate Database package for CodeIgniter 4

4,540 25
ajiho/illuminate-files-scoper

Add a namespace to the files under the Illuminate component autoload.files

23 0
beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query function...

87,152,520 2,102

Version History

Version Released PHP Laravel License
7.1.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
7.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
6.1.1 ^7.2|^8.0 >=6.0 MIT
6.1.0 ^7.2 >=6.0 MIT
6.0.1 ^7.2 >=6.0 MIT