PHP Classes

JetDirect: Show a message in a printer LCD display

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 55%Total: 1,232 All time: 3,101 This week: 455Up
Version License PHP version Categories
jetdirect 1.0GNU General Publi...5Networking, PHP 5, Printing


This is a simple class that can be used to show a message in the LCD display of an HP printer.

It establishes a TCP socket connection to an HP printer with JetDirect support, and sends a control message that instructs the printer to show a given text in the LCD display.

Innovation Award
PHP Programming Innovation award nominee
February 2007
Number 5

Prize: One book of choice by O'Reilly
Hewlett-Packard printers are very popular. Some models have an LCD display to show important messages to the printer users.

This class can communicate with an HP printer to update the messages presented in the LCD display.

With some creativity, it can be used in applications that display other useful message to the printer users, besides those related to the actual printing process.

Manuel Lemos
Picture of Zafar Iqbal
Name: Zafar Iqbal is available for providing paid consulting. Contact Zafar Iqbal .
Classes: 8 packages by
Country: Greece Greece
Age: 50
All time rank: 2572 in Greece Greece
Week rank: 264 Down3 in Greece Greece Down
Innovation award
Innovation award
Nominee: 2x


[Conversion of original C Code from 'Printer Hack 12/8/97'] This class provides a method to send a message string to HP printers LCD on the network which support JetDirect. Maybe it works on other printers on the network, maybe not. Very easy to use - see example code for usage. Tested on Linux - good luck on other platforms! Have Fun ;) 2007-01-16

  Files folder image Files  
File Role Description
Plain text file class-jetdirect.php Class Main Class File
Accessible without login Plain text file example.php Example Example Code
Accessible without login Plain text file readme.txt Data Readme File

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,101
This week:455Up
 User Ratings  
 All time