ph-7/qrcode-generator-php-class
Composer 安装命令:
composer require ph-7/qrcode-generator-php-class
包简介
Light QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart AP
README 文档
README
Description
QRCode PHP class allows you to easily generate a simple QR code using vCard 4.0 and the Google Chart API.
Here are two videos explaining QR code: http://www.youtube.com/watch?v=B3lrcOhmp9g and http://www.youtube.com/watch?v=IphTJHiKGos
Composer Installation
You can add it easily in your project by using Composer.
$ composer require ph-7/qrcode-generator-php-class
Then, include Composer's autoload
require_once 'vendor/autoload.php';
Manual Installation
If you don't use Composer, you can install it without Composer by simply including the class
require 'QRCode.class.php';
How to Use
Here's a basic example:
/** * If you have PHP 5.4 or higher, you can instantiate the object like this: * (new QRCode)->fullName('...')->... // Create vCard Object */ $oQRC = new QRCode; // Create vCard Object $oQRC->fullName('Pierre-Henry Soria') // Add Full Name ->nickName('PH7') // Add Nickname ->gender('M') // Add Gender ->email('ph7software@gmail.com') // Add Email Address ->impp('phs_7@aol.com') // Add Instant Messenger ->url('http://ph-7.github.com') // Add URL Website ->note('Hello to all! I am a web developer. As hobbies I like climbing and swimming ...') // Add Note ->categories('developer,designer,climber,swimmer') // Add Categories ->photo('http://files.phpclasses.org/picture/user/1122955.jpg') // Add Avatar ->lang('en-US') // Add Language ->finish(); // End vCard // echo '<p><img src="' . $oQRC->get(300) . '" alt="QR Code" /></p>'; // Generate and display the QR Code $oQRC->display(300); // Set size and display QR Code default 150px
You also have a sample file here: http://github.com/pH-7/QRCode-Generator-PHP-Class/blob/master/example.php
Server Requirements
PHP 5.2.4 or higher.
Author
Contact
Contact me at: pierrehenrysoria [[AT]] gmail [[D0T]] com
License
General Public License 3 or later; See the LICENSE.txt file.
ph-7/qrcode-generator-php-class 适用场景与选型建议
ph-7/qrcode-generator-php-class 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.84k 次下载、GitHub Stars 达 104, 最近一次更新时间为 2016 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「library」 「class」 「qr code」 「vCard」 「qr code library」 「qr code class」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ph-7/qrcode-generator-php-class 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ph-7/qrcode-generator-php-class 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ph-7/qrcode-generator-php-class 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
Collection of methods that I or you usually use.
A very simple yet useful helper class to handle PHP file uploads.
Inbox pattern process implementation for your Laravel Applications
Promotional Codes Generator for Laravel 5.1
Yii2 js base class
统计信息
- 总下载量: 15.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 104
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-04-03