Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests transfer ownership to artisanry Jun 4, 2019
.editorconfig editorconfig Aug 3, 2017
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Laravel Collection Export

Build Status PHP from Packagist Latest Version License

Installation

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

Usage

Export/Download an Illuminate\Support\Collection
(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());

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Security

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.

Credits

License

Mozilla Public License Version 2.0 (MPL-2.0).

You can’t perform that action at this time.