Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ composer require bayareawebpro/laravel-simple-csv

## Usage:

Invokable classes can be passed to the import method allow you to customize
how are processed. By default, none are applied.

Two classes to handle numerics and null values have
been supplied and can be applied.

```php
use BayAreaWebPro\SimpleCsv\SimpleCsv;
use BayAreaWebPro\SimpleCsv\Casts\EmptyValuesToNull;
Expand All @@ -34,7 +40,10 @@ $lazyCsvCollection = SimpleCsv::import(storage_path('collection.csv'), [
]);
```

### Invokable Cast Classes
### Invokable Classes

**Dependency Injection:** Invokable classes can typehint required dependencies in a
constructor method when defined.

```php
<?php declare(strict_types=1);
Expand Down