Giter VIP home page Giter VIP logo

Comments (4)

casperbakker avatar casperbakker commented on May 27, 2024 1

Well, there are a lot of options with this library in barcode types. A lot of strings can be handled by 30-50% of all methods in this package.

You only want the distinction between UPC and EAN, which is probably a simple if statement. I don't think it is something that this library should do at this moment.

Will keep this use case in mind though. Thanks for your explanation.

from php-barcode-generator.

casperbakker avatar casperbakker commented on May 27, 2024

Thanks @gastongr

Could you give me a concrete example of the situation?

from php-barcode-generator.

gastongr avatar gastongr commented on May 27, 2024

For example in retail, some articles might have a UPC barcode and some EAN.
If you had to list all the articles along with the corresponding barcode image, it would be good to be able to use

foreach ($articles as $article) {
    echo $generator->getBarcode($article->barcode);
}

That is, call getBarcode() without knowing the barcode type in advance.

from php-barcode-generator.

gastongr avatar gastongr commented on May 27, 2024

Maybe the autodetection could be taken from https://github.com/violuke/php-barcodes, wich detects the barcode type given a barcode string. Just a suggestion though.

from php-barcode-generator.

Related Issues (20)

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.