dev-master
9999999-devWrapper Package for Print Node
MIT
The Requires
by Mario Velasquez
v0.1-alpha
0.1.0.0-alphaWrapper Package for Print Node
MIT
The Requires
by Mario Velasquez
Wrapper Package for Print Node
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"
Add your API key to the .env file, (*4)
PRINT_NODE_API_KEY=apikey
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)
Wrapper Package for Print Node
MIT
Wrapper Package for Print Node
MIT