javaabu/imports

Streamline excel data import to your application

v1.2.0 2024-07-08 14:14 UTC

This package is auto-updated.

Last update: 2024-10-20 22:15:34 UTC


README

Latest Version on Packagist Test Status Code Coverage Badge Total Downloads

Introduction

Streamline excel data import to your application

Documentation

You'll find the documentation on https://docs.javaabu.com/docs/imports.

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

If you've found a bug regarding security please mail info@javaabu.com instead of using the issue tracker.

Usage

Install the package via composer:

composer require javaabu/imports

Create your controller and use the ImportsData trait

<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Javaabu\Imports\Traits\ImportsData;

class ImportsController extends Controller
{
    use ImportsData;
}

Register your routes

    Route::get('import', [ImportsController::class, 'index'])->name('imports.index');
    Route::post('import', [ImportsController::class, 'store'])->name('imports.store');

For more customization you can override the methods in ImportsData trait.

Testing

You can run the tests with

./vendor/bin/phpunit

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 info@javaabu.com instead of using the issue tracker.

Credits

License

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