Giter Site home page Giter Site logo

qrcodebundle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qrcodebundle's Issues

Syntax error, unexpected '?', expecting variable (T_VARIABLE)

Info

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

Issue on

#2 /var/www/html/vendor/yellowskies/qr-code-bundle/Generator/Generator.php(50): spl_autoload_call('Symfony\\Compone...')

$this->resolver = new OptionsResolver();

My Code

$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);

image

Barcode in not working

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.

Support Symfony 4

Hi,

would it be possible to bump the dependencies to support symfony 4?

Thx and merry christmas :)

Composer update to Symfony 4.4 - PHP Fatal error: Class 'Twig_Extension' not found in vendor/yellowskies/qr-code-bundle/Twig/Extensions/Barcode.php on line 14

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.

How to dimension a 2d code in a very precise size

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?

Symfony 5.4 Deprecation Warning

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.