2017 © Pedro Peláez
 

library printer

Wrapper Package for Print Node

image

capsule-corp-co/printer

Wrapper Package for Print Node

  • Wednesday, February 14, 2018
  • by marioevel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Installation

You can pull this package in through Composer., (*1)

composer require capsule-corp-co/printer

You will need to add the following lines to config/app.php, (*2)

'providers' => [
    ...
    CapsuleCorp\Printer\PrintNodeCapsuleServiceProvider::class,
    ...
],
'aliases' => [
    ...
    'PrintNodeCapsule' => CapsuleCorp\Printer\PrintNodeCapsuleFacade::class,
    ....
]

Next you will want to publish the config file., (*3)

php artisan vendor:publish --provider="CapsuleCorp\Printer\PrintNodeCapsuleServiceProvider"

Configuration

Add your API key to the .env file, (*4)

PRINT_NODE_API_KEY=apikey

Use

Get all the printers ```php /* * Will return an array of Printer Objects */ PrintNodeCapsule::getPrinters();, (*5)

/** * Print Example */, (*6)

$printers = PrintNodeCapsule::getPrinters(); $post_job_arg = array( 'content' => 'url to a pdf here', 'printer' => $printer[0], ); $result = PrintNodeCapsule::postPrintJob($post_job_arg); ```, (*7)

The Versions

14/02 2018

dev-master

9999999-dev

Wrapper Package for Print Node

  Sources   Download

MIT

The Requires

 

by Mario Velasquez

14/02 2018

v0.1-alpha

0.1.0.0-alpha

Wrapper Package for Print Node

  Sources   Download

MIT

The Requires

 

by Mario Velasquez