Download the PHP package xslain/laravel-printing without Composer
On this page you can find all versions of the php package xslain/laravel-printing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xslain/laravel-printing
More information about xslain/laravel-printing
Files in xslain/laravel-printing
Package laravel-printing
Short Description Direct printing for Laravel apps
License MIT
Homepage https://github.com/xslain/laravel-printing
Informations about the package laravel-printing
Laravel Printing Package - Network & USB Printing

This Laravel package provides comprehensive printing capabilities including PDF generation, Excel/CSV import/export, download management, view printing, and direct hardware printing via network and USB connections.
Key Features
- Multiple Print Drivers: PrintNode, CUPS, Network, USB, Raw
- PDF Generation: Convert HTML to PDF and print directly
- View Printing: Print Blade templates as PDFs or raw output
- Network Printing: Direct TCP/IP printing to network printers
- USB Printing: Direct communication with USB printers
- Raw Printing: Support for multiple connection types (network, USB, parallel, serial)
- Excel/CSV Operations: Import and export spreadsheet data
- Download Management: Create and manage file downloads
- ESC/POS Support: Thermal printer command support
Installation
Install the package via Composer:
Publish the configuration file:
Publish the view templates (optional):
Quick Start
Environment Configuration
Add to your .env file:
Basic Usage
Supported Drivers
1. PrintNode (Cloud)
2. CUPS (Local Server)
3. Network (TCP/IP)
4. USB (Direct Device)
5. Raw (Multi-Connection)
Advanced Features
PDF Generation
View Printing
Create a Blade view resources/views/printing/receipt.blade.php:
Print the view:
Network Printing
USB Printing
Raw Printing
Configure different connection types:
Excel/CSV Operations
Download Management
Configuration Reference
The complete configuration file config/printing.php:
Error Handling
Platform Support
| Platform | Network | USB | Parallel | Serial |
|---|---|---|---|---|
| Linux | ✅ | ✅ | ✅ | ✅ |
| Windows | ✅ | ⚠️ | ✅ | ✅ |
| macOS | ✅ | ⚠️ | ⚠️ | ⚠️ |
- ✅ Full support
- ⚠️ Limited support
- ❌ Not supported
Requirements
- PHP 8.1+
- Laravel 10.0+
- For PDF: DomPDF or mPDF
- For Excel: PhpSpreadsheet
- For USB on Linux:
lsusbcommand - Network access for network printing
Testing
Examples
Check the examples/ directory for comprehensive usage examples:
examples/network-usb-printing.php- Network and USB printing examples- More examples coming soon...
Custom Drivers
Extend with custom drivers:
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 - Original package author
- All Contributors
- Mike42 for the PHP ESC/POS Print Driver library
License
This package is open-sourced software licensed under the MIT license.
Additional Resources
For more detailed documentation and advanced usage examples, visit: https://randallwilk.dev/docs/laravel-printing
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.
All versions of laravel-printing with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/support Version ^12.30.1
mike42/escpos-php Version ^4.0
spatie/laravel-package-tools Version ^1.13