Skip to content

Commit ed40375

Browse files
authored
improve readme + composer update (#60)
1 parent eab5dbb commit ed40375

File tree

5 files changed

+38
-77
lines changed

5 files changed

+38
-77
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# [PHPExif](http://github.com/LycheeOrg/php-exif)
22

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

4646
## Contributors
4747

48+
* [ildyria](https://github.com/ildyria)
49+
* [d7415](https://github.com/d7415)
50+
* [kamil4](https://github.com/kamil4)
51+
* [nagmat84](https://github.com/nagmat84)
52+
* [qwerty287](https://github.com/qwerty287)
53+
54+
#### Past Contributors
55+
56+
Thank you for your help!
57+
4858
* [Tom Van Herreweghe](http://github.com/Miljar)
4959
* [Ingewikkeld](https://github.com/Ingewikkeld)
5060
* [Christophe Singer](https://github.com/wasinger)
@@ -53,15 +63,14 @@ Have a bug or a feature request? [Please open a new issue](https://github.com/Ly
5363
* [Marek Szymczuk](https://github.com/bonzai)
5464
* [Scott Pringle](https://github.com/Luciam91)
5565
* [tmp-hallenser](https://github.com/tmp-hallenser)
56-
* [kamil4](https://github.com/kamil4)
57-
* [ildyria](https://github.com/ildyria)
58-
* [nagmat84](https://github.com/nagmat84)
66+
* [icager](https://github.com/icager)
67+
5968

6069
## License
6170

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

6473

6574
[release-shield]: https://img.shields.io/github/release-pre/LycheeOrg/php-exif.svg
66-
[php-shield]: https://img.shields.io/badge/PHP-8.0%20|%208.1-blue
75+
[php-shield]: https://img.shields.io/badge/PHP-8.1%20|%208.2-blue
6776
[license-shield]: https://img.shields.io/github/license/LycheeOrg/Lychee.svg

Resources/doc/usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
```php
66
<?php
77
// reader with Native adapter
8-
$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_NATIVE);
8+
$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::NATIVE);
99

1010
// reader with Exiftool adapter
11-
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_EXIFTOOL);
11+
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::EXIFTOOL);
1212

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

1616
// reader with Imagick adapter
17-
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Reader\Reader::TYPE_IMAGICK);
17+
//$reader = \PHPExif\Reader\Reader::factory(\PHPExif\Enum\ReaderType::IMAGICK);
1818

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

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
"require": {
3131
"php": "^8.1",
3232
"ext-fileinfo": "*",
33-
"fylax/forceutf8": "dev-master",
34-
"neitanod/forceutf8": "^2.0.4",
33+
"fylax/forceutf8": "^3.0.1",
3534
"php-ffmpeg/php-ffmpeg": "^1.0",
3635
"thecodingmachine/safe": "^2.2"
3736
},

composer.lock

Lines changed: 14 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/PHPExif/Enum/ReaderType.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace PHPExif\Enum;
99

10-
enum ReaderType: string
10+
enum ReaderType
1111
{
12-
case NATIVE = 'native';
13-
case EXIFTOOL = 'exiftool';
14-
case FFPROBE = 'ffprobe';
15-
case IMAGICK = 'imagick';
12+
case NATIVE;
13+
case EXIFTOOL;
14+
case FFPROBE;
15+
case IMAGICK;
1616
}

0 commit comments

Comments
 (0)