承接 gigablah/silex-qrcode 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gigablah/silex-qrcode

最新稳定版本:0.0.1

Composer 安装命令:

composer require gigablah/silex-qrcode

包简介

Silex QR Code Provider

README 文档

README

The QrCodeServiceProvider integrates the endroid/qrcode library with your Silex application.

Installation

Use Composer to install the gigablah/silex-qrcode library by adding it to your composer.json.

{
    "require": {
        "silex/silex": "~1.0",
        "gigablah/silex-qrcode": "~0.0.1"
    }
}

Usage

Just register the service provider and optionally pass in some defaults.

$app->register(new Gigablah\Silex\QrCode\QrCodeServiceProvider(), array(
    'qrcode.options' => array(
        'size' => 300,
        'padding' => 10
    )
));

You may now generate QR code images as follows:

$app['qrcode']->setText('http://example.org');

return new Symfony\Component\HttpFoundation\Response(
    $app['qrcode']->get('png'),
    200,
    array('Content-Type' => 'image/png')
);

Todo

  • Wrap the QrCode class to provide a fluent interface

License

Released under the MIT license. See the LICENSE file for details.

统计信息

  • 总下载量: 1.27k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-10-30