Download the PHP package smart-dato/labelary without Composer
On this page you can find all versions of the php package smart-dato/labelary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smart-dato/labelary
More information about smart-dato/labelary
Files in smart-dato/labelary
Package labelary
Short Description A http client to make working with Labelary easier in Laravel
License MIT
Informations about the package labelary
Labelary Client
this repo contains the code for a simple laravel client to convert ZPL files into png/jpg
To do that we use the site Labelary. We wrote a wrapper for Laravel to interact with their API. There site offers a lot more please check it out.
Configuration
Labelary's free plan needs neither of these. Premium plans come with a private API hostname and an API key, both of which are delivered via email upon sign-up — set them and everything else stays the same. Hostnames without a scheme are called over HTTPS.
Usage
The API key and host fall back to the config, and can also be passed per call or set on the instance:
Output formats
Besides PNG and PDF, the API converts ZPL into LabelaryType::JSON (data extraction), LabelaryType::ZPL (transformation), IPL, EPL, DPL, SBPL, PCL5 and PCL6:
Conversion options
The advanced request headers are set on the instance and only sent for the output formats they apply to:
The instance keeps these options, so they apply to every following conversion until you reset them.
Label count and linting
^XA...^XZ blocks can define multiple labels, and the linter reports potential errors in your ZPL:
Barcodes
All symbologies are available as BarcodeType constants, and the remaining barcode parameters can be passed as options:
Unknown option keys are passed through, so parameters that Labelary adds later can be used right away.
All versions of labelary with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0