Package Data | |
---|---|
Maintainer Username: | rawilk |
Maintainer Contact: | randall@randallwilk.dev (Randall Wilk) |
Package Create Date: | 2020-06-26 |
Package Last Update: | 2024-07-08 |
Home Page: | https://randallwilk.dev/docs/laravel-printing |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-09 15:09:05 |
Package Statistics | |
---|---|
Total Downloads: | 137,131 |
Monthly Downloads: | 6,768 |
Daily Downloads: | 202 |
Total Stars: | 447 |
Total Watchers: | 10 |
Total Forks: | 72 |
Total Open Issues: | 7 |
Laravel Printing allows your application to directly send PDF documents or raw text directly from a remote server
to a printer on your local network. Receipts can also be printed by first generating the raw text via the Rawilk\Printing\Receipts\ReceiptPrinter
class, and then sending the text as a raw print job via the Printing
facade.
$printJob = Printing::newPrintTask()
->printer($printerId)
->file('path_to_file.pdf')
->send();
$printJob->id(); // the id number returned from the print server
Supported Print Drivers:
For documentation, please visit: https://randallwilk.dev/docs/laravel-printing
You can install the package via composer:
composer require rawilk/laravel-printing
You can publish the config file with:
php artisan vendor:publish --provider="Rawilk\Printing\PrintingServiceProvider" --tag="config"
The contents of the default configuration file can be found here: https://github.com/rawilk/laravel-printing/blob/master/config/printing.php
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email randall@randallwilk.dev instead of using the issue tracker.
Inspiration for the PrintNode API wrapper comes from:
The MIT License (MIT). Please see License File for more information.