https://github.com/gravitano/barcode
php barcode generator
https://github.com/gravitano/barcode
Last synced: 3 months ago
JSON representation
php barcode generator
- Host: GitHub
- URL: https://github.com/gravitano/barcode
- Owner: gravitano
- Created: 2015-04-07T04:44:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-06T23:41:13.000Z (about 10 years ago)
- Last Synced: 2025-01-20T08:09:19.211Z (4 months ago)
- Language: PHP
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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");
//
```