Skip to content

Commit

Permalink
improve readme + composer update (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Dec 31, 2022
1 parent eab5dbb commit ed40375
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 77 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# [PHPExif](http://github.com/LycheeOrg/php-exif)

[![GitHub Release][release-shield]](https://github.com/LycheeOrg/php-exif/releases)
[![PHP 8.0 & 8.1][php-shield]](https://github.com/LycheeOrg/php-exif#installation-composer)
[![PHP 8.1 & 8.2][php-shield]](https://github.com/LycheeOrg/php-exif#installation-composer)
[![MIT License][license-shield]](https://github.com/LycheeOrg/php-exif/blob/master/LICENSE)
<br>
[![Build Status](https://github.com/LycheeOrg/php-exif/workflows/Tests/badge.svg)](https://github.com/LycheeOrg/php-exif/actions)
Expand Down Expand Up @@ -45,6 +45,16 @@ Have a bug or a feature request? [Please open a new issue](https://github.com/Ly

## Contributors

* [ildyria](https://github.com/ildyria)
* [d7415](https://github.com/d7415)
* [kamil4](https://github.com/kamil4)
* [nagmat84](https://github.com/nagmat84)
* [qwerty287](https://github.com/qwerty287)

#### Past Contributors

Thank you for your help!

* [Tom Van Herreweghe](http://github.com/Miljar)
* [Ingewikkeld](https://github.com/Ingewikkeld)
* [Christophe Singer](https://github.com/wasinger)
Expand All @@ -53,15 +63,14 @@ Have a bug or a feature request? [Please open a new issue](https://github.com/Ly
* [Marek Szymczuk](https://github.com/bonzai)
* [Scott Pringle](https://github.com/Luciam91)
* [tmp-hallenser](https://github.com/tmp-hallenser)
* [kamil4](https://github.com/kamil4)
* [ildyria](https://github.com/ildyria)
* [nagmat84](https://github.com/nagmat84)
* [icager](https://github.com/icager)


## License

[MIT License](http://github.com/LycheeOrg/php-exif/blob/master/LICENSE)


[release-shield]: https://img.shields.io/github/release-pre/LycheeOrg/php-exif.svg
[php-shield]: https://img.shields.io/badge/PHP-8.0%20|%208.1-blue
[php-shield]: https://img.shields.io/badge/PHP-8.1%20|%208.2-blue
[license-shield]: https://img.shields.io/github/license/LycheeOrg/Lychee.svg
8 changes: 4 additions & 4 deletions Resources/doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
```php
<?php
// reader with Native adapter
$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_NATIVE);
$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::NATIVE);

// reader with Exiftool adapter
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_EXIFTOOL);
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::EXIFTOOL);

// reader with FFmpeg/FFprobe adapter
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_FFPROBE);
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::FFPROBE);

// reader with Imagick adapter
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_IMAGICK);
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::IMAGICK);

$exif = $reader->read('/path/to/file');

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"require": {
"php": "^8.1",
"ext-fileinfo": "*",
"fylax/forceutf8": "dev-master",
"neitanod/forceutf8": "^2.0.4",
"fylax/forceutf8": "^3.0.1",
"php-ffmpeg/php-ffmpeg": "^1.0",
"thecodingmachine/safe": "^2.2"
},
Expand Down
75 changes: 14 additions & 61 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions lib/PHPExif/Enum/ReaderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

namespace PHPExif\Enum;

enum ReaderType: string
enum ReaderType
{
case NATIVE = 'native';
case EXIFTOOL = 'exiftool';
case FFPROBE = 'ffprobe';
case IMAGICK = 'imagick';
case NATIVE;
case EXIFTOOL;
case FFPROBE;
case IMAGICK;
}

0 comments on commit ed40375

Please sign in to comment.