1## Usage ##
2
3### Using factory method
4
5```php
6<?php
7// reader with Native adapter
8$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_NATIVE);
9
10// reader with Exiftool adapter
11//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_EXIFTOOL);
12
13$exif = $reader->read('/path/to/file');
14
15echo 'Title: ' . $exif->getTitle() . PHP_EOL;
16```
17
18### Using custom options
19
20```php
21<?php
22$adapter = new \PHPExif\Adapter\Exiftool(
23    array(
24        'toolPath'  => '/path/to/exiftool',
25    )
26);
27$reader = new \PHPExif\Reader\Reader($adapter);
28
29$exif = $reader->read('/path/to/file');
30
31echo 'Title: ' . $exif->getTitle() . PHP_EOL;
32```