laravel-printing

Direct printing for Laravel apps

PrintJob.php
composer.json

Introduction

Introduction

{note} You're browsing the documentation for an old version of laravel-printing. Consider upgrading your project to v3. Check your version with the following command:

composer show rawilk/laravel-printing

Printing for Laravel 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.

Here's a simple example of what you can do with this package:

$printJob = Printing::newPrintTask()
    ->printer($printerId)
    ->file('path_to_file.pdf')
    ->send();

$printJob->id(); // the id number returned from the print server

Laravel Printing currently only supports one two drivers currently. More drivers may be added in the future.

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

Caught a mistake? Suggest an edit on GitHub