# mike42/escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers

Repository: https://github.com/mike42/escpos-php
Canonical: https://ross.abutalabs.com/products/escpos-php
Language: PHP
License: NOASSERTION
License Family: other
Topics: barcode, epson, receipt-printer, printer, php, escpos, hacktoberfest
Last push: 2026-08-08T08:00:07+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 59, longevity 100
- inputs: {"age_days": 4619, "days_push": 25, "days_rel": 63, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2791, forks 881 (observed 2026-08-28T04:07:22.187744+00:00)

## What it is
A PHP library implementing a subset of Epson's ESC/POS protocol for thermal and impact receipt printers. It lets PHP applications generate and print receipts with formatting, cutting, and barcodes over many interfaces.

## Use cases
- print receipts from a PHP point-of-sale app
- send barcodes to a thermal receipt printer
- print to an Epson ESC/POS printer over ethernet or USB
- add receipt printing to a web-based POS system
- cut paper and format text on a receipt printer from PHP

## When to choose
- your PHP app needs to print receipts to an ESC/POS-compatible printer
- you need support for many connection types like USB, serial, ethernet, or CUPS
- you want a mature, widely used receipt printing library

## When to avoid
- your printer does not support the ESC/POS protocol
- you need full-page or graphics-heavy document printing rather than receipts
- you are not working in PHP

## Facets
- artifact type: library
- maturity: active
- function: sdk
- domain: hardware, developer-tools, e-commerce
- platform: windows, php, cross-platform
- tags: escpos, receipt-printer, thermal-printer, barcode, point-of-sale, printing, linux, macos

## Member repositories
- mike42/escpos-php (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:22.187744+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:15:16.372850+00:00, confidence not recorded.
  - readme: https://github.com/mike42/escpos-php (fetched 2026-08-28T04:07:22.187744+00:00, sha 865bea79299d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
