Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-printing

> 后端框架
Open source

Direct printing for Laravel apps.

564 stars0 likes4 views
WebsiteGitHub

About

Direct printing for Laravel apps.

Printing for Laravel

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.

php
$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:

bash
composer require rawilk/laravel-printing

You can publish the config file with:

bash
php artisan vendor:publish --tag="printing-config"

The contents of the default configuration file can be found here: https://github.com/rawilk/laravel-printing/blob/main/config/printing.php

Testing

bash
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

  • Randall Wilk
  • All Contributors
  • Mike42 for the PHP ESC/POS Print Driver library

Inspiration for the PrintNode API wrapper comes from:

  • PrintNode/PrintNode-PHP
  • phatkoala/printnode

Inspiration for certain aspects of the API implementations comes from:

  • stripe-php

Disclaimer

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

License

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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPcupsipplaravel-printingprinter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架