dipenparmar12 / exportable
A Laravel package for hassle free generate CSV,JSON files from (Eloquent model,Collection Array)
Requires
- php: ^7.2.5 || ^8.0
- illuminate/support: ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^7.0 || ^8.5 || ^9.0
This package is auto-updated.
Last update: 2025-02-18 11:25:55 UTC
README
A Laravel package for hassle free generate CSV,JSON files from Eloquent model,Collection Array, You can Import/Export Data from just one command.
Installation
You can install the package via composer:
composer require dipenparmar12/exportable
Usage
Syntax
php artisan csv:export <table_name1> <table_name2> <table_name...>
Example
php artisan csv:export Users Posts Jobs
To Export all tables
php artisan csv:export tables --all
Features log
Dump
- Export table data in Csv file
- Export table data in Json file
Import
- Import table data in Csv file
- Import table data in Json file
Conversions
- Json to Csv
- Csv to Json
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 dipenparmar12@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.