PHP code example of techone / php-excel
1. Go to this page and download the library: Download techone/php-excel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
techone / php-excel example snippets
use TechOne\Excel\Concerns\FromArray;
class UsersExport implements FromArray
{
public function array()
{
return [
[1, 2, 3],
[1, 2, 3]
];
}
}
Excel::download(new UsersExport(), 'data.xlsx');
composer