dredger / qr-render
There is no license information available for the latest version (dev-master) of this package.
qr-render
dev-master
2018-05-29 16:41 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- php: >=7.1
- phpunit/phpunit: ~7
This package is not auto-updated.
Last update: 2024-10-27 05:52:09 UTC
README
Created for playing.
Installation via composer
- Add current repository to composer.json
- Require library:
composer require dredger/qr-render=dev-master
Usage
Open functional test for example of usage
Recommendation
If you can use Dependency Container just use it. For example for symfony2
# app/config/services.yml services: guzzle_client: class: GuzzleHttp\Client dredger.qrcode.renderer.google_renderer: class: DredgerQr\QrCode\Renderer\GoogleChartsRenderer arguments: [@guzzle_client] dredger.qrcode.generator: class: DredgerQr\QrCode\QrCodeGenerator arguments: [@dredger.qrcode.renderer.google_renderer]
And you will be able to use it:
use DredgerQr\QrCode\Renderer\GoogleChartsRenderer; use GuzzleHttp\ClientInterface; use GuzzleHttp\Psr7\Response; $renderer = new GoogleChartsRenderer($c); $renderer->render('TrekkSoft', 50, 60); // text, width, height