2017 © Pedro Peláez
 

library labelary

PHP API for Labelary.com

image

printu/labelary

PHP API for Labelary.com

  • Wednesday, July 25, 2018
  • by krzaczek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

API Client

PHP bindings for the Labelary.com API (http://labelary.com)., (*1)

API Documentation, (*2)

Build Status Code Climate Test Coverage, (*3)

Installation

The API client can be installed via Composer., (*4)

In your composer.json file:, (*5)

{
    "require": {
        "printu/labelary": "~2.0"
    }
}

Once the composer.json file is created you can run composer install for the initial package install and composer update to update to the latest version of the API client., (*6)

The client uses Guzzle., (*7)

Basic Usage

Remember to include the Composer autoloader in your application:, (*8)

<?php
use GuzzleHttp\Exception\GuzzleException;

require_once 'vendor/autoload.php';

// Application code...
$labelary = new Labelary\Client();

$zpl = '^xa^cfa,50^fo100,100^fdHello World^fs^xz';

try {
    $response = $labelary->printers->labels([
        'zpl' => $zpl,
        'response' => 'application/pdf',
        'rotate' => 180
    ]);
} catch (GuzzleException $e) {
    throw new Exception("API Labelary error: ".$e->getMessage());
}

License

MIT license. See the LICENSE file for more details., (*9)

The Versions

25/07 2018

dev-master

9999999-dev http://labelary.com/

PHP API for Labelary.com

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest http client labelary.com labelary

25/07 2018

1.0.0

1.0.0.0 http://labelary.com/

PHP API for Labelary.com

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest http client labelary.com labelary