It helps to generate a Barcode
Suports following type QRCode EAN8 EAN13 Code39 Code128 UPCA
- QRCode
- EAN8
- EAN13
- Code39
- Code128
- UPCA
Clone the project
git clone git@github.com:sthpratik/PHPBarcodeGenerator.gitGo to the project directory
cd PHPBarcodeGeneratorBuild container. Not Required. Docker compose up should trigger creating image
docker build -t phpbarcodegenerator .Start the server
docker compose up -dAccess it on port 3080
http://localhost:3080/?type=QRCode&data=https://www.etsy.com/shop/CreateGiftStudioTo stop service
docker compose downTo deploy this project run
docker stack deploy -c docker-compose.deploy.yml barcode This pulls the container from the dockerhub
GET /?type=EAN8&data=123456 GET /?type=EAN13&data=123456 GET /?type=Code39&data=123456&level=L&size=10 GET /?type=QRCode&data=QRCode| Parameter | Type | Description | Values | Default |
|---|---|---|---|---|
type |
string |
Not Required. Barcrode Type | QRCode/EAN8/EAN13/Code39/Code128/UPCA | QRCode |
data |
string |
Required. Data for barcode | Text/Number for Barcode | http://softechpro.co |
level |
string |
Not Required. Used for QRCod | 'L','M','Q','H' | L |
size |
string |
Not Required. QRCode Image size | 1-10 | 4 |
I'm a full stack developer...
This is based on the library PHPQRCOde