랭킹으로 돌아가기

chillerlan/php-qrcode

PHPsmiley.codes/qrcode/

A PHP QR Code generator and reader with a user-friendly API.

php7qrcode-generatorqrcodeqr-codeqr-generatorsvgphpqrcodephpphp-libraryimagemagickphp5-is-deadlet-php5-die
스타 성장
스타
2.4k
포크
330
주간 성장
이슈
1
1k2k
2023년 1월2024년 3월2025년 5월2026년 7월
아티팩트Packagistcomposer require chillerlan/php-qrcode
README

chillerlan/php-qrcode

A PHP QR Code generator based on the implementation by Kazuhiko Arase, namespaced, cleaned up, improved and other stuff. It also features a QR Code reader based on a PHP port of the ZXing library.

Attention: there is now also a javascript port on NPM: @chillerlan/qrcode.

PHP Version Support Packagist version Continuous Integration CodeCov Codacy Packagist downloads Documentation

Overview

Features

  • Creation of Model 2 QR Codes, Version 1 to 40
  • ECC Levels L/M/Q/H supported
  • Mixed mode support (encoding modes can be combined within a QR symbol). Supported modes:
  • Flexible, easily extensible output modules, built-in support for the following output formats:
  • QR Code reader (via GD and ImageMagick)

Requirements

For the QR Code reader, either ext-gd or ext-imagick is required!

Documentation

Important: Please use the examples from the branch that matches your installed php-qrcode version ( v5.x, v6.x, dev-main )!
The main (default) branch is the active development for future major versions, and it is most likely incompatible with the latest release versions.

Installation with composer

See the installation guide for more info!

Terminal

composer require chillerlan/php-qrcode

composer.json

{
	"require": {
		"php": "^8.4",
		"chillerlan/php-qrcode": "dev-main#<commit_hash>"
	}
}

Note: replace dev-main with a version constraint, e.g. ^6.0 - see releases for valid versions.

Quickstart

We want to encode this URI for a mobile authenticator into a QRcode image:

$data = 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5&issuer=chillerlan.net';

// quick and simple:
echo '<img src="'.(new QRCode)->render($data).'" alt="QR Code" />';

Wait, what was that? Please again, slower! See Advanced usage in the manual. Also, have a look in the examples folder for some more usage examples.

QR codes are awesome!

Disclaimer!

I don't take responsibility for molten CPUs, misled applications, failed log-ins etc.. Use at your own risk!

License notice

Trademark Notice

The word "QR Code" is a registered trademark of DENSO WAVE INCORPORATED
https://www.qrcode.com/en/faq.html#patentH2Title

관련 저장소
firefly-iii/firefly-iii

Firefly III: a personal finances manager

PHPPackagistGNU Affero General Public License v3.0phpmoney
firefly-iii.org
24.1k2.2k
bcit-ci/CodeIgniter

Open Source PHP Framework (originally from EllisLab)

PHPPackagistMIT Licensephpphp7
codeigniter.com
18.2k7.5k
getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony

PHPPackagistMIT Licensephpcms
getgrav.org
15.6k1.4k
phpstan/phpstan

PHP Static Analysis Tool - discover bugs in your code without running it!

PHPPackagistMIT Licensephpstanstatic-analysis
phpstan.org
14k958
php-pm/php-pm

PPM is a process manager, supercharger and load balancer for modern PHP applications.

PHPPackagistMIT Licensephp7symfony
6.6k368
cytopia/devilbox

A modern Docker LAMP stack and MEAN stack for local development

PHPPackagistMIT Licensedockerlamp
devilbox.org
4.5k661
craftcms/cms

Build bespoke content experiences with Craft.

PHPPackagistOthercmscraftcms
craftcms.com
3.6k705
pangudashu/php7-internal

PHP7内核剖析

zendphp-7
3.4k872
changeweb/Unifiedtransform

A school management Software

PHPPackagistGNU General Public License v3.0school-managementteacher-student
changeweb.github.io/Unifiedtransform/
3k1.3k
Licoy/wordpress-theme-puock

:art: 一款基于WordPress开发的高颜值的自适应主题,支持白天与黑夜模式/无刷新加载/第三方登录等众多功能 | A high-value adaptive theme based on WordPress, supports light and dark modes, no refresh loading, etc.

PHPPackagistGNU General Public License v3.0wordpresswordpress-theme
docs.puock.com
2.9k468
TruCopilot/phpfastcache

A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load. Well implemented, it can drops the database load to almost nothing, yielding faster page load times for users, better resource utilization. It is simple yet powerful.

PHPPackagistMIT Licensecachephp
phpfastcache.com
2.4k445
PHPSocialNetwork/phpfastcache

A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load. Well implemented, it can drops the database load to almost nothing, yielding faster page load times for users, better resource utilization. It is simple yet powerful.

PHPPackagistMIT Licensecachephp
phpfastcache.com
2.4k455