You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PHP QR Code generator based on the [implementation by Kazuhiko Arase](https://github.com/kazuhikoarase/qrcode-generator),
4
-
namespaced, cleaned up, improved and other stuff. It also features a QR Code reader based on a [PHP port](https://github.com/khanamiryan/php-qrcode-detector-decoder) of the [ZXing library](https://github.com/zxing/zxing).
5
-
6
3
**Hi! Please check out the [v5.0-beta release](https://github.com/chillerlan/php-qrcode/releases/tag/5.0-beta) and leave your feedback in [this discussion thread](https://github.com/chillerlan/php-qrcode/discussions/188). Thanks!**
7
4
8
-
**Attention:** there is now also a javascript port: [chillerlan/js-qrcode](https://github.com/chillerlan/js-qrcode).
A PHP QR Code generator based on the [implementation by Kazuhiko Arase](https://github.com/kazuhikoarase/qrcode-generator), namespaced, cleaned up, improved and other stuff. <br>
29
+
It also features a QR Code reader based on a [PHP port](https://github.com/khanamiryan/php-qrcode-detector-decoder) of the [ZXing library](https://github.com/zxing/zxing).
30
+
31
+
32
+
**Attention:** there is now also a javascript port: [chillerlan/js-qrcode](https://github.com/chillerlan/js-qrcode).
33
+
34
+
### Features
31
35
32
36
- Creation of [Model 2 QR Codes](https://www.qrcode.com/en/codes/model12.html), [Version 1 to 40](https://www.qrcode.com/en/about/version.html)
- Mixed mode support (encoding modes can be combined within a QR symbol). Supported modes:
35
39
- numeric
36
40
- alphanumeric
37
41
- 8-bit binary
38
-
- 13-bit double-byte kanji (Japanese, Shift-JIS) and hanzi (simplified Chinese, GB2312/GB18030) as [defined in GBT18284-2000](https://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000)
42
+
- 13-bit double-byte:
43
+
- kanji (Japanese, Shift-JIS)
44
+
- hanzi (simplified Chinese, GB2312/GB18030) as [defined in GBT18284-2000](https://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000)
39
45
- Flexible, easily extensible output modules, built-in support for the following output formats:
@@ -45,13 +51,9 @@ namespaced, cleaned up, improved and other stuff. It also features a QR Code rea
45
51
- PDF via [FPDF](https://github.com/setasign/fpdf)
46
52
- QR Code reader (via GD and ImageMagick)
47
53
48
-
## Documentation
49
-
50
-
See [the wiki](https://github.com/chillerlan/php-qrcode/wiki) for advanced documentation.
51
-
An API documentation created with [phpDocumentor](https://www.phpdoc.org/) can be found at https://chillerlan.github.io/php-qrcode/ (WIP).
52
-
The documentation for `QROptions` container can be found here: [chillerlan/php-settings-container](https://github.com/chillerlan/php-settings-container#readme).
@@ -62,14 +64,28 @@ The documentation for `QROptions` container can be found here: [chillerlan/php-s
62
64
63
65
For the QRCode reader, either `ext-gd` or `ext-imagick` is required!
64
66
65
-
### Installation
66
-
**requires [composer](https://getcomposer.org)**
67
67
68
-
via terminal:
68
+
## Documentation
69
+
70
+
- The user manual is at https://php-qrcode.readthedocs.io/ ([sources](https://github.com/chillerlan/php-qrcode/tree/main/docs))
71
+
- An API documentation created with [phpDocumentor](https://www.phpdoc.org/) can be found at https://chillerlan.github.io/php-qrcode/
72
+
- The documentation for `QROptions` container can be found here: [chillerlan/php-settings-container](https://github.com/chillerlan/php-settings-container#readme)
73
+
74
+
75
+
## Installation with [composer](https://getcomposer.org)
76
+
77
+
See [the installation guide](https://php-qrcode.readthedocs.io/en/main/Usage-Installation.html) for more info!
78
+
79
+
80
+
### Terminal
81
+
69
82
```
70
83
composer require chillerlan/php-qrcode
71
84
```
72
-
via `composer.json`:
85
+
86
+
87
+
### composer.json
88
+
73
89
```json
74
90
{
75
91
"require": {
@@ -78,76 +94,75 @@ via `composer.json`:
78
94
}
79
95
}
80
96
```
97
+
81
98
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.
82
-
See [the installation guide on the wiki](https://github.com/chillerlan/php-qrcode/wiki/Installation) for more info!
83
99
84
-
### Quickstart
100
+
101
+
## Quickstart
102
+
85
103
We want to encode this URI for a mobile authenticator into a QRcode image:
Hi, please check out my other projects that are way cooler than qrcodes!
139
140
140
-
-[php-oauth-core](https://github.com/chillerlan/php-oauth-core) - an OAuth 1/2 client library along with a bunch of [providers](https://github.com/chillerlan/php-oauth-providers)
141
+
142
+
## Shameless advertising
143
+
144
+
Hi, please check out some of my other projects that are way cooler than qrcodes!
145
+
146
+
-[js-qrcode](https://github.com/chillerlan/js-qrcode) - a javascript port of this library
147
+
-[php-authenticator](https://github.com/chillerlan/php-authenticator) - a Google Authenticator implementation (see [authenticator example](https://github.com/chillerlan/php-qrcode/blob/main/examples/authenticator.php))
141
148
-[php-httpinterface](https://github.com/chillerlan/php-httpinterface) - a PSR-7/15/17/18 implemetation
149
+
-[php-oauth-core](https://github.com/chillerlan/php-oauth-core) - an OAuth 1/2 client library along with a bunch of [providers](https://github.com/chillerlan/php-oauth-providers)
142
150
-[php-database](https://github.com/chillerlan/php-database) - a database client & querybuilder for MySQL, Postgres, SQLite, MSSQL, Firebird
151
+
-[php-tootbot](https://github.com/php-tootbot/tootbot-template) - a Mastodon bot library (see [@dwil](https://github.com/php-tootbot/dwil))
152
+
153
+
154
+
## Disclaimer!
143
155
144
-
### Disclaimer!
145
156
I don't take responsibility for molten CPUs, misled applications, failed log-ins etc.. Use at your own risk!
146
157
147
-
#### License notice
148
-
Parts of this code are [ported to PHP](https://github.com/codemasher/php-qrcode-decoder) from the [ZXing project](https://github.com/zxing/zxing) and licensed under the [Apache License, Version 2.0](./NOTICE).
149
158
150
-
#### Trademark Notice
159
+
### License notice
160
+
161
+
- Parts of this code are [ported to PHP](https://github.com/codemasher/php-qrcode-decoder) from the [ZXing project](https://github.com/zxing/zxing) and licensed under the [Apache License, Version 2.0](./NOTICE).
162
+
-[The documentation](https://github.com/chillerlan/php-qrcode/tree/main/docs) is licensed under the [Creative Commons Attribution 4.0 International (CC BY 4.0) License](https://creativecommons.org/licenses/by/4.0/).
163
+
164
+
165
+
### Trademark Notice
151
166
152
167
The word "QR Code" is a registered trademark of *DENSO WAVE INCORPORATED*<br>
0 commit comments