2017 © Pedro PelĂĄez
 

library csv

To export data to CSV with Laravel 5.2

image

codeuz/csv

To export data to CSV with Laravel 5.2

  • Monday, September 12, 2016
  • by apalette
  • Repository
  • 1 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Csv

Description

This package will help you to export data to CSV with Laravel 5.2, (*1)

Installation

Add Csv Package to your composer.json file to require Bootstrap :, (*2)

    require : {
        "laravel/framework": "5.2.*",
        "codeuz/csv": "dev-master"
    }

Update Composer :, (*3)

    composer update

The next required step is to add the service provider to config/app.php :, (*4)

    Codeuz\Csv\CsvServiceProvider::class

Use

The last required step is to export data to CSV in your Controller :, (*5)

    $csv->setHeaders(['firstname' => 'User Firstname'])->setData([['firstname' => 'John', 'lastname' => 'Martin'], ['firstname' => 'Tom', 'age' => '33']])->setFilename('users')->export();

Congratulations, you have successfully installed Csv Package !, (*6)

The Versions

12/09 2016

dev-master

9999999-dev https://github.com/apalette/laravel-csv

To export data to CSV with Laravel 5.2

  Sources   Download

MIT

The Requires