Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Nov 7, 2023
1 parent 0ffefbe commit ae6ecd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ composer require odan/exel
```php
use Odan\Excel\ExcelWriter;
use Odan\Excel\ZipFile;

$file = new ZipFile();
$excel = new ExcelWriter($file);

// Change sheet name
$excel->setSheetName('My Sheet');

// Write headers
$head = ['Date', 'Name', 'Amount'];
$excel->writeHead($head);

Expand Down

0 comments on commit ae6ecd7

Please sign in to comment.