2017 © Pedro Peláez
 

library laravel-importer

Extensible importer for Laravel

image

luna/laravel-importer

Extensible importer for Laravel

  • Thursday, October 5, 2017
  • by DuckThom
  • Repository
  • 2 Watchers
  • 5 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel Importer

Latest Stable Version Total Downloads Latest Unstable Version StyleCI TravisCI License , (*1)

# Prerequisites

Before using this package, make sure you are at least running PHP 7.0 and that you have Laravel 5.4., (*2)

# Setup

First, add this package to your composer.json:, (*3)

    composer require luna/laravel-importer "~1.0"

Add the service provider and facade to config/app.php:, (*4)

    'providers' => [
        // ...
        // Package providers

        Luna\Importer\ServiceProvider::class,
    ],

    'aliases' => [
        // ...

        "Import" => Luna\Importer\ImporterFacade::class
    ]

Publish the configuration:, (*5)

    php artisan vendor:publish --provider="Luna\Importer\ServiceProvider"

# Features

This plugin currently only comes with a CSV runner which means it is only able to parse CSV files out of the box. There will be more info on how to add runners added later., (*6)

# Documentation

http://laravel-importer.readthedocs.io/en/latest/, (*7)

# Example configuration

config/importer.php:, (*8)

return [
    /***********************************************************
     * Importers are used for defining specific import tasks
     * For instance, a ProductImporter could import a file with
     * products into a table.
     ***********************************************************/
    'importers' => [
        'default' => \App\Importers\ProductImporter::class
    ],

    /***********************************************************
     * Runners are used for looping through the file
     * The default is a CSV runner which will loop though
     * CSV files line-by-line. A runner uses an importer to get
     * import specific settings like the model class.
     ***********************************************************/
    'runners' => [
        'default' => \Luna\Importer\Runners\CsvRunner::class
    ]
];

# Contributing

Pull requests for new features are welcome as long as they include tests for it as well., (*9)

The Versions

05/10 2017

dev-master

9999999-dev

Extensible importer for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

05/10 2017

1.0.2

1.0.2.0

Extensible importer for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

19/02 2017

1.0.1

1.0.1.0

Extensible importer for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

19/02 2017

v1.0.0

1.0.0.0

Extendable importer for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa