Need help with laravel-printing?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

rawilk
208 Stars 34 Forks MIT License 104 Commits 17 Opened issues

Description

Direct printing for Laravel apps.

Services available

!
?

Need anything else?

Contributors list

# 144,777
PHP
Shell
laravel...
Laravel
94 commits

laravel-printing

Latest Version on Packagist Tests Total Downloads PHP from Packagist License

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:

  • PrintNode: https://printnode.com
  • CUPS: https://cups.org
  • Custom: Configure your own custom driver

Documentation:

For documentation, please visit: https://randallwilk.dev/docs/laravel-printing

Installation

You can install the package via composer:

composer require rawilk/laravel-printing

You can publish the config file with:

bash
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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.