antoinetesson / qrcodebundle Goto Github PK
View Code? Open in Web Editor NEWYellowskiesQRcodeBundle is a Symfony4/5/6 Barcode Generator Bundle.
YellowskiesQRcodeBundle is a Symfony4/5/6 Barcode Generator Bundle.
php version:
PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
QRcodeBundle version: 1.2
#2 /var/www/html/vendor/yellowskies/qr-code-bundle/Generator/Generator.php(50): spl_autoload_call('Symfony\\Compone...')
$this->resolver = new OptionsResolver();
$options = array(
'code' => '/app/vehicles/1/public/'
'type' => 'datamatrix',
'format' => 'png',
'width' => 10,
'height' => 10,
'color' => array(127, 127, 127)
);
$generator = new Generator();
$barcode = $generator->generate($options);
$qrData = array('qr' => $barcode, 'plate' => $model->plate);
Hi:
I have a proyect hosted in AWS and barcode is no generating a QR. This is the code:
{% set qr = barcode({code: url('dataCard',{'card':card.url}), type: 'qrcode', format: 'png', color: [0, 0, 0]}) %}
<div class="codigo-qr"> <img src="{{ 'data:image/png;base64,' ~ qr }}" /></div>
In my local machine, is working Ok and generating the image.
Hi,
would it be possible to bump the dependencies to support symfony 4?
Thx and merry christmas :)
Hi your work is great, is very useful.
I tried to upgrade a Symfony project from version 4.3 to 4.4 and I got this error:
PHP Fatal error: Class 'Twig_Extension' not found in /home/carlos/www/gdocumentBack_sf44/vendor/yellowskies/qr-code-bundle/Twig/Extensions/Barcode.php on line 14
Symfony\Component\Debug\Exception\ClassNotFoundException^ {#7689
#message: """
Attempted to load class "Twig_Extension" from the global namespace.\n
Did you forget a "use" statement?
"""
#code: 0
#file: "./vendor/yellowskies/qr-code-bundle/Twig/Extensions/Barcode.php"
#line: 14
#severity: E_ERROR
}
Thanks for your help.
Hi and thank you for this bundle
I would have liked to know how to dimension the width and height of a 2d code very precisely. Currently for the datamatrix for example the smallest size is 14x14 when you specify 1x1 and then it is multiples of 14.
Is it possible to solve this problem by encoding in base64 in an img tag for svg?
I am not sure if there are more depcreations right now.
Should be fixed for Support for Symfony 6.x
Method "Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder()" might add "TreeBuilder" as a native return type declaration in the future. Do the same in implementation "Skies\QRcodeBundle\DependencyInjection\Configuration" now to avoid errors or add an explicit @return annotation to suppress this message.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.