PHPackages                             aderemi/multiple-rows-processor - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aderemi/multiple-rows-processor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aderemi/multiple-rows-processor
===============================

Laravel Multiple row operations with XML, JSON, CSV or plan text

08PHP

Since Nov 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Aderemi/Multiple-Rows-Processor)[ Packagist](https://packagist.org/packages/aderemi/multiple-rows-processor)[ RSS](/packages/aderemi-multiple-rows-processor/feed)WikiDiscussions staging Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Multiple Row Processor
==============================

[](#laravel-multiple-row-processor)

Laravel Multiple Row Processor is a package for Laravel which is used to manage multiple record processing at database level through CSV files. This makes applications with multiple uploads through CSV, XML, JSON and Flat Text File much easier to maintain.

Installation
------------

[](#installation)

Run the following command from you terminal:

```
composer require "Aderemi/Multiple-Rows-Processor: ^1.0.0"
```

or add this to require section in your composer.json file:

```
"Aderemi/Multiple-Rows-Processor: ^1.0.0"

```

then run `composer update`

Usage
-----

[](#usage)

First, create your Sheet class. Note that your sheet class MUST extend `MultipleRows\Contract\MultipleRows` and implement four methods `rule(string $method, array $data)`, `getUniqueIDField()`, `processor()` and `model()`And you must define 5 constants which are the headers of your sheets processes

```

php```
Create the process which will extend MultipleRows\Behaviour\Processor

```php

php```

## Available Methods

The following methods are available:

##### MultipleRows\Behaviour

```php
```

The following methods are available:

##### MultipleRows\\Behaviour\\Processor

[](#multiplerowsbehaviourprocessor)

```
public function beforeCreate(array $data) // If you over-ride this method it means you want to handle your create by yourself
public function beforeUpdate(array $data) // If you over-ride this method it means you want to handle your update by yourself
```

The JSON format currently supported are

```
// 1
{
  "header" : ["sku", "name", "price"],
  "body" : [
    ["394AG", "Tomatoes", 300],
    ["344AG", "Big Tomatoes", 500]
  ]
}
// 2
[
{
  "sku"   : "324AF",
  "name"  : "Tin Tomatoes",
  "price" : 100
},
{
  "sku"   : "334AF",
  "name"  : "Sachet Tomatoes",
  "price" : 70
},
{
  "sku"   : "324AF",
  "name"  : "Mashed Tomatoes",
  "price" : 400
}
]
// and 3
[
  ["sku", "name", "price"],
  ["321GE", "Pepper", 320],
  ["323GE", "Seasoning", 20]
]
```

XML is under construction Still editing....\[STILL WORKING ON IT\]

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/d4a268de470a4a0d7df021c92c9cb5d5462dbc0ddb116d316321c9dd2d0475f7?d=identicon)[akinsnazri](/maintainers/akinsnazri)

### Embed Badge

![Health badge](/badges/aderemi-multiple-rows-processor/health.svg)

```
[![Health](https://phpackages.com/badges/aderemi-multiple-rows-processor/health.svg)](https://phpackages.com/packages/aderemi-multiple-rows-processor)
```

###  Alternatives

[kapolos/pramda

Toolkit for Practical Functional Programming in PHP

24569.7k1](/packages/kapolos-pramda)[vladimmi/construct-static

Small Composer wrapper to implement static class constructors

172.2k1](/packages/vladimmi-construct-static)

PHPackages © 2026

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