Skip to content

Commit 4650a47

Browse files
committed
Update readme
1 parent 2a69d95 commit 4650a47

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,20 @@ composer require marquine/php-etl
1414
```
1515

1616
## Documentation
17-
Documentation can be found [here](http://php-etl.readthedocs.io/).
17+
Documentation can be found [here](https://php-etl.gitbook.io/).
1818

1919

2020
## Example
21-
In the example below, we will extract data from a csv file, trim two columns and load the data into database:
21+
In the example below, we will extract data from a csv file, trim white spaces from the name and email columns and then insert the values into the users table:
2222
```php
23-
use Marquine\Etl\Job;
23+
use Marquine\Etl\Etl;
2424

25-
Job::start()->extract('csv', 'path/to/file.csv')
26-
->transform('trim', ['columns' => ['name', 'email']])
27-
->load('table', 'users');
28-
```
29-
or
30-
```php
31-
use Marquine\Etl\Job;
25+
$etl = new Etl;
3226

33-
$job = new Job;
34-
$job->extract('csv', 'path/to/file.csv')
27+
$etl->extract('csv', '/path/to/users.csv')
3528
->transform('trim', ['columns' => ['name', 'email']])
36-
->load('table', 'users');
29+
->load('insert', 'users')
30+
->run();
3731
```
3832

3933
## License

0 commit comments

Comments
 (0)