PHPackages                             imediasun/laravel-csv-import - 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. imediasun/laravel-csv-import

ActiveLibrary

imediasun/laravel-csv-import
============================

Package for using widgets in Laravel-5

0161[1 PRs](https://github.com/devmagellan/laravel-csv-import/pulls)PHP

Since Apr 18Pushed 7y agoCompare

[ Source](https://github.com/devmagellan/laravel-csv-import)[ Packagist](https://packagist.org/packages/imediasun/laravel-csv-import)[ RSS](/packages/imediasun-laravel-csv-import/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-csv-import
==================

[](#laravel-csv-import)

COMMAND-LINE AND API BASED CSV IMPORT TOOL WITH AN ADMIN USER INTERFACE

This package allows you to import CSV files a database.

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

[](#installation)

This package can be used in Laravel 5.6 or higher. You can install the package via composer:

```
composer require imediasun/laravel-csv-import

```

manually add the service provider in your config/app.php file:

```
'providers' => [
    // ...
    Imediasun\Widgets\WidgetServiceProvider::class,
];

```

You can publish the package with:

```
php artisan vendor:publish --provider="Imediasun\Widgets\WidgetServiceProvider"

```

Also you need run migrate in Laravel:

```
php artisan migrate

```

After that you need to set widget config variables in congig/widgets.php:

```
return [

    // ...
    'csv_import_recepient'=>'imediasun@gmail.com',
    'csv_import_sender'=>['address'=>'imediasu1n@gmail.com','name'=>'Andrey'],
];
```

To check, add to any template that you are going to display, for example, the line in the resources \\ views \\ welcome.blade.php:

```
@widget('test')

```

You can see Log files after laravel Queues jobs will proceed in storage/logs/csv\_import\_exception.log

Also you can use this package in your code in such format:

```
use Imediasun\Widgets\ApiController as Import;
$importer = new Import();
$importer->setDestination('customers');
$importer->setSource(storage_path('app/csv/zIZSaoFkwDMY2Jchp9AOYanBFvL2mfcKfalbn4uI.csv'));
    $importer->configureFields([
        'Name'=>['field'=>'name','validators'=>'required|max:255'],
        'Email'=>['field'=>'email','validators'=>'required|email'],
        'Telefon'=>['field'=>'telefon','validators'=>'max:10']

    ]);
$result = $importer->process();
```

Description
-----------

[](#description)

this package can add values to the database by defining names in the header of CSV file If csv didnt contains header this package will catch exception and you will receive exception message For simple import sample file you can find in root folder of the package customers.csv Also Package use Laravel Queue and you need to set up them on your Laravel project. To receive success and error emails you need to configure your mail server in .env file For Example like this

```
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=mail@gmail.com
MAIL_PASSWORD=Password
MAIL_ENCRYPTION=tls

```

Tests
-----

[](#tests)

There is a test folder in app/Widgets dirrectory You can set up your PhpStorm or other IDE that you use to run test that this folder conteins

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.3% 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://www.gravatar.com/avatar/aafb873dc370255479b4d88803458d1c4fc8e4c36cefe659d82eaa857340ce6b?d=identicon)[devmagellan](/maintainers/devmagellan)

---

Top Contributors

[![imediasun](https://avatars.githubusercontent.com/u/4966688?v=4)](https://github.com/imediasun "imediasun (21 commits)")[![devmagellan](https://avatars.githubusercontent.com/u/47326389?v=4)](https://github.com/devmagellan "devmagellan (17 commits)")

### Embed Badge

![Health badge](/badges/imediasun-laravel-csv-import/health.svg)

```
[![Health](https://phpackages.com/badges/imediasun-laravel-csv-import/health.svg)](https://phpackages.com/packages/imediasun-laravel-csv-import)
```

PHPackages © 2026

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