Skip to content

Import and and save file contents from a remote or local sources

License

Notifications You must be signed in to change notification settings

64robots/laravel-content-importer

Repository files navigation

Laravel Content Importer

Import and save contents of files form local or remote storage

Installation

You can install the package via composer:

composer require 64robots/content-import

Usage

Publish Migrations and default configurations.

php artisan vendor:publish --provider="R64\ContentImport\ContentImportServiceProvider"

This package exposes 2 commands

Import files from a disk

php artisan files:import 

Read and save contents imported files

php artisan files:process

Supported File formats

  • csv

Available Configs

  • directory parent directory where files to be imported are stored. defaults to imports
  • chunck_size defines how large contents of your file should be chucked into. defaults to 1000
  • heading_row: a heading row for your files (a row in which each cells indicates the purpose of that column)

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Import and and save file contents from a remote or local sources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages