Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Receiptprinter

Receiptprinter Laravel Package

charlieuki/receiptprinter

A PHP library for printing receipts on thermal ESC/POS printers. It supports USB, network, Windows and Linux connections, with a simple API for formatting text, images, barcodes and QR codes. Easily integrated into Laravel or any PHP application.

View on GitHub
Deep Wiki
Context7

charlieuki/receiptprinter is a lightweight PHP library for sending formatted receipts to thermal printers using the ESC/POS command set. It wraps escpos-php's connector layer with a simple, readable API, making it easy to build and print receipts from Laravel or any plain PHP application.

  • Print over USB, serial, SMB, or network connections
  • Chainable helpers for text, alignment, bold, and line breaks
  • Simple item and price formatting for receipt lines
  • Compatible with common 58mm and 80mm thermal printers
  • Framework-agnostic — drop it into Laravel or any PHP project
Frequently asked questions about Receiptprinter
How do I install charlieuki/receiptprinter in a Laravel application?
Install it with Composer using composer require charlieuki/receiptprinter, then check whether the package registers a Laravel service provider or facade. If it does not, wrap it in a small application-level adapter or binding so your code is not tightly coupled to its API. Confirm the license before using it in any commercial project.
Does charlieuki/receiptprinter support Laravel 9, 10, and 11?
Laravel 9, 10, and 11 compatibility is not officially verified in the available evaluation. The last release was November 2021, and PHP 8.x support is also unverified. Test it in an isolated Laravel project and review its Composer constraints before committing to it.
Can charlieuki/receiptprinter print receipts to a network thermal printer?
Yes, the package is intended for thermal ESC/POS printers and network or LAN printing over TCP is the most straightforward connectivity option. USB, serial, and Bluetooth scenarios typically require a local agent or edge device because the Laravel application may not have direct hardware access. Validate the exact printer model and ESC/POS dialect with a hardware proof of concept.
What printer connectivity types does charlieuki/receiptprinter support?
The package is described as supporting USB, serial, and network thermal printers. Some environments may also use Bluetooth through a local agent or edge device, but that depends on the driver and hardware setup. Confirm connectivity, paper width, and code page support for each target printer before rollout.
Is charlieuki/receiptprinter suitable for production receipt printing?
It can fit a small, controlled printer fleet if your Laravel application owns connectivity, queueing, retries, templates, logging, and observability around it. It is not a complete printing platform and does not provide device discovery, template management, retry handling, or monitoring. The last release was November 2021 and the license is unclear, so production use carries high technical and legal risk until those issues are resolved.
What is the license for charlieuki/receiptprinter and can I use it commercially?
The license is reported as NOASSERTION, which is a commercial and legal blocker until clarified. Do not assume it is permissively licensed or safe for commercial use without review. Confirm the actual license with the repository owner or legal team, and only fork it under an approved license if permitted.
Does charlieuki/receiptprinter support barcodes, QR codes, images, and cash drawer commands?
Yes, the package is described as supporting text formatting, barcodes, QR codes, images, and cash drawer commands through a fluent API. Actual output depends on the printer model, firmware, and ESC/POS dialect. Test each feature on real hardware because unsupported commands can fail silently.
Do I need Laravel queues and retries with charlieuki/receiptprinter?
The package does not provide queueing, retries, backoff, or observability, so you should add those in your Laravel application. Dispatch print jobs through Laravel queues and log every print attempt for auditing and troubleshooting. This is especially important because printer failures are immediately visible to customers.
How should I test charlieuki/receiptprinter before rolling it out?
Start with a mandatory hardware spike using one printer model, one receipt layout, raw ESC/POS output, and a manual print test. Then test each supported printer model, paper width such as 58mm or 80mm, and character encoding. Emulators are useful during development but are not sufficient for acceptance.
What are the alternatives if charlieuki/receiptprinter is unmaintained?
If the package cannot be maintained or licensed appropriately, use a maintained ESC/POS library such as mike42/escpos-php if it meets your needs, or build a minimal internal ESC/POS command builder. Keep receipt printing behind an internal adapter interface so you can replace the implementation without rewriting application code. A fork is only viable if the license permits it and your team accepts ongoing maintenance.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource