Require this package, with Composer, in the root directory of your project.
composer require artisanry/collection-export
And then include the service provider within app/config/app.php
.
Artisanry\CollectionExport\CollectionExportServiceProvider::class
(new Artisanry\CollectionExport\Export)->filename('users')->csv(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->json(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->pdf(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->xls(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->xlsx(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->xml(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->yaml(User::get());
(new Artisanry\CollectionExport\Export)->filename('users')->yamlInline(User::get());
Please see CHANGELOG for more information what has changed recently.
$ phpunit
Please see CONTRIBUTING for details.
If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.
Mozilla Public License Version 2.0 (MPL-2.0).