An open API service indexing awesome lists of open source software.

https://github.com/gravitano/barcode

php barcode generator
https://github.com/gravitano/barcode

Last synced: 3 months ago
JSON representation

php barcode generator

Awesome Lists containing this project

README

        

# BarCode PHP
Package for generating barcodes in HTML format with PHP.

## Supported codes
Currently the BarCode PHP works with the formats below:

| **Code** | **Implemented** | **Tested with Handheld Scanner** |
|---------------|-----------------|----------------------------------|
| **Code 39** | Yes | Yes |
| | | |

Installation
----------
```
$ composer require ianrodrigues/barcode
```

```json
{
"require": {
"ianrodrigues/barcode": "~0.*"
}
}
```

Usage
----------
```php
";
echo $barcode->getCssStyle();
echo "";
// .barcode{height:50px}.barcode div{display:inline-block;height:100%}.barcode .black{border-color:#000;border-left-style:solid;width:0}.barcode .white{background:#fff}.barcode .thin.black{border-left-width:1px}.barcode .large.black{border-left-width:3px}.barcode .thin.white{width:1px}.barcode .large.white{width:3px}

// Code39
echo $barcode->code39("AB20150401CD");
//















































































































































```