rawilk/laravel-printing
关于
为 Laravel 应用提供直接打印功能。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +4
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.
$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:
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
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:
Inspiration for certain aspects of the API implementations comes from:
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.
探索相关项目
加载中…