Skip to content

Commit 7bacc8b

Browse files
committed
:octocat:
1 parent d6f1500 commit 7bacc8b

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,22 @@ An API documentation created with [phpDocumentor](https://www.phpdoc.org/) can b
3535

3636
### Requirements
3737
- PHP 7.4+
38-
- `ext-mbstring`
38+
- [`ext-mbstring`](https://www.php.net/manual/book.mbstring.php)
3939
- optional:
40-
- `ext-json`, `ext-gd`
41-
- `ext-imagick` with [ImageMagick](https://imagemagick.org) installed
40+
- [`ext-gd`](https://www.php.net/manual/book.image)
41+
- [`ext-imagick`](https://github.com/Imagick/imagick) with [ImageMagick](https://imagemagick.org) installed
4242
- [`setasign/fpdf`](https://github.com/setasign/fpdf) for the PDF output module
4343

4444
For the QRCode reader, either `ext-gd` or `ext-imagick` is required!
4545

4646
### Installation
4747
**requires [composer](https://getcomposer.org)**
4848

49-
via terminal: `composer require chillerlan/php-qrcode`
50-
51-
*composer.json*
49+
via terminal:
50+
```
51+
composer require chillerlan/php-qrcode
52+
```
53+
via `composer.json`:
5254
```json
5355
{
5456
"require": {
@@ -57,17 +59,8 @@ via terminal: `composer require chillerlan/php-qrcode`
5759
}
5860
}
5961
```
60-
6162
Note: replace `dev-main` with a [version constraint](https://getcomposer.org/doc/articles/versions.md#writing-version-constraints), e.g. `^4.3` - see [releases](https://github.com/chillerlan/php-qrcode/releases) for valid versions.
62-
For PHP version ...
63-
- 7.4+ use `^4.3`
64-
- 7.2+ use `^3.4.1` (v3.4.1 also supports PHP8)
65-
- 7.0+ use `^2.0`
66-
- 5.6+ use `^1.0` (please let PHP 5 die!)
67-
68-
In case you want to keep using `dev-main`, specify the hash of a commit to avoid running into unforseen issues like so: `dev-main#cb69751c3bc090a7fdd2f2601bbe10f28d225f10`
69-
70-
PSA: [PHP 7.0 - 7.3 are EOL](https://www.php.net/supported-versions.php) and therefore the respective `QRCode` versions are also no longer supported!
63+
See [the installation guide on the wiki](https://github.com/chillerlan/php-qrcode/wiki/Installation) for more info!
7164

7265
### Quickstart
7366
We want to encode this URI for a mobile authenticator into a QRcode image:
@@ -77,7 +70,6 @@ $data = 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5&issuer=chillerlan.net';
7770
// quick and simple:
7871
echo '<img src="'.(new QRCode)->render($data).'" alt="QR Code" />';
7972
```
80-
8173
<p align="center">
8274
<img alt="QR codes are awesome!" style="width: auto; height: 530px;" src="https://raw.githubusercontent.com/chillerlan/php-qrcode/main/.github/images/example.svg">
8375
</p>

0 commit comments

Comments
 (0)