PHPackages                             qplot/importer - 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. qplot/importer

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

qplot/importer
==============

script driven CSV importer for Laravel 4

113PHP

Since Jul 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/windmaomao/laravel-importer)[ Packagist](https://packagist.org/packages/qplot/importer)[ RSS](/packages/qplot-importer/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Importer for Laravel 4
======================

[](#importer-for-laravel-4)

Importer can import csv files and map column to fields in database based on config file.

```
'customers'     => [
    'file'      => 'customers.csv',
    'model'     => 'user',
    'unique'    => 'fullname',
    'mapping'   => [
        'fullname'      => 'Full Name',
        'email'         => 'E-mail',
        'created_at'    => 'Signup Date',
    ],
    'rules'     => [
        'fullname' => 'required',
        'email' => 'required|email|unique:users',
        'username' => 'required',
    ]
],
'kids'          => [
    'file'      => 'appointments.csv',
    'model'     => 'kid',
    'unique'    => 'fullname',
    'mapping'   => [
        'fullname'      => 'Kid Name',
        'parent_id'     => [
            'column'    => 'Full Name',
            'type'      => 'reference',
            'model'     => 'user',
            'foreign_ref'   => 'id',
            'foreign_field' => 'fullname',
            'foreign_data'  => []
        ]
    ],
    'rules'     => []
],

```

The idea is that you can just set these settings and then call $importer-&gt;import() to get everything imported.

### Installation

[](#installation)

Add package to the `composer.json` file

```
"require": {
    "qplot/importer": "dev-master"

```

Then run composer update,

```
composer update

```

Add provider `app/config/app.php` file

```
'providers' => array(
    'QPlot\Importer\ImporterServiceProvider'

```

To change settings, you need to first publish config file,

```
php artisan config:publish qplot/importer

```

### Todo

[](#todo)

- Make facade
- Make more documentation

### Changelog

[](#changelog)

#### 0.1.0

[](#010)

- Add service provider

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://avatars.githubusercontent.com/u/1700809?v=4)[Fang Jin](/maintainers/windmaomao)[@windmaomao](https://github.com/windmaomao)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/qplot-importer/health.svg)

```
[![Health](https://phpackages.com/badges/qplot-importer/health.svg)](https://phpackages.com/packages/qplot-importer)
```

###  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.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

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

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/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)
