找到你要的答案

Q:Best barcodes and how\what to generate barcodes from, and how to store it the best way?

Q:最好的条码和怎么什么生成条形码,以及如何存储它的最好的方式吗?

I am writing an webapp for a used thrift store. We are planning to add all items to a database, and I will be using Laravel + mysql for this.

We also want to get a barcodescanner in order to scan and add items.

But I've never worked with barcodes before and info regarded this for a website like mine is hard to find info on, so is the barcode-scanners so Im asking help from someone with experience.

Im not sure wich barcodes we should use, but im thinking a 3D one, like QR would do good. I've found several qr-generators, but im unsure on how I should create them properly from items.

Say the store is named Brukten. And it has items, with number id's. Should I then generate barcodes out of "Brukten_53" or something, or just the ID, or how is a smart way? Because I can use an option like this instead of storing the generated barcode, right, and its better to generate a QR each time instead of storing the data about it?

At first we will use a web interface to add items, and later on we want to get a barcode-scanner to help scan things, so Im guessing it would be nice with a scanner that could take pictures and add to database. So we want the DB to be ready for this, and properly made to work with such systems. So Im wondering also if anyone can recommend me a device for this. I've seen several but unsure what to choose. 2d, 3d, something with camera, or is there other devices we could use?

What we want a device for is:

We want to store in the db: Old things, new things We want to retrieve: all things We want to alter info: edit things, sell, check things

Something easier than going around with a laptop, phone or a tablet and entering stuff.

Building the site is no problem for me, php,mysql, laravel framework and all is old stuff, but barcodes is a new world for me so hoping if someone have experience or tips, tell me.

我写了一个使用旧货店的webapp。我们计划把所有的项目数据库,我将使用laravel + MySQL这。

我们也希望得到一个barcodescanner为了扫描和添加项目。

但我从未与条码信息视为前一个网站像我是很难找到的信息,所以是条码扫描仪所以我要求帮助,有经验的人。

我不知道,我们应该使用条形码,但我想一个三维的,像QR会做的很好。我发现几个QR发电机,但我不知道应该如何创建好的项目。

说店名叫Brukten。有项目,有身份证号码的。我应该再生成条码的“brukten_53”什么的,或是身份,或是一个聪明的办法吗?因为我可以用一个选项,这样反而存储生成的条码,右,和更好的生成一个QR每次而不是存储数据呢?

首先,我们将使用一个Web界面添加项目,后来我们希望得到一个条码扫描仪,以帮助扫描的东西,所以我猜这将是一个扫描仪,可以拍照和添加到数据库很好。因此,我们希望DB为这个做好准备,并适当地与这样的系统一起工作。所以我想知道如果有人可以推荐我这个设备。我见过几个但不知道该选择什么。2D,3D,相机的东西,或者有其他设备,我们可以使用?

我们想要的设备是:

We want to store in the db: Old things, new things We want to retrieve: all things We want to alter info: edit things, sell, check things

比用笔记本电脑、手机或平板电脑更方便的东西。

建筑工地对我来说不是问题,PHP,MySQL,laravel框架都是旧的东西,但我希望如果条码是有经验或建议一个新的世界,告诉我。

answer1: 回答1:

You only have to make sure that every single distinct physical item has a unique ID.

A simple way to accomplish this is using category ids as prefixes. Suppose your "used men clothes category" is ID 25, and when you enter a pair on jeans of that category into the system, you app assign them ID 12345. You can reference that item as 002500012345. You only need to calculate the 13rd digit using this function (http://edmondscommerce.github.io/php/barcode/ean13-barcode-check-digit-with-php.html) and you have a full-fledged EAN13 barcode you can print using this font (http://www.fontpalace.com/font-details/EAN-13/) and read with virtually any code scanner.

The other approach is generating a unique url for each product: http://www.example.com/25/12345.html And embed the url into a QR code.

You can generate the image for the QR code using this library: http://phpqrcode.sourceforge.net/

你只需要确保每一个独特的物理项目有一个独特的ID.

A simple way to accomplish this is using category ids as prefixes. Suppose your "used men clothes category" is ID 25, and when you enter a pair on jeans of that category into the system, you app assign them ID 12345. You can reference that item as 002500012345. You only need to calculate the 13rd digit using this function (http://edmondscommerce.github.io/php/barcode/ean13-barcode-check-digit-with-php.html) and you have a full-fledged EAN13 barcode you can print using this font (http://www.fontpalace.com/font-details/EAN-13/) and read with virtually any code scanner.

The other approach is generating a unique url for each product: http://www.example.com/25/12345.html And embed the url into a QR code.

You can generate the image for the QR code using this library: http://phpqrcode.sourceforge.net/

laravel-5  qr-code  lamp  barcode-scanner  scanning