PHPackages                             limetec/php-network-lpr-printer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. limetec/php-network-lpr-printer

ActiveLibrary[HTTP &amp; Networking](/categories/http)

limetec/php-network-lpr-printer
===============================

PHP class to manage network printers via LPR (Line Printer Daemon Protocol) standard

v1.2.0(4y ago)033.1k↓66.2%PHPPHP ^8.0

Since Nov 14Pushed 4y ago4 watchersCompare

[ Source](https://github.com/LimetecBiotechnologies/PhpNetworkLprPrinter)[ Packagist](https://packagist.org/packages/limetec/php-network-lpr-printer)[ RSS](/packages/limetec-php-network-lpr-printer/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)DependenciesVersions (7)Used By (0)

PhpNetworkLprPrinter - Manage network printers via LPR in PHP
=============================================================

[](#phpnetworklprprinter---manage-network-printers-via-lpr-in-php)

PHP class to manage network printers via LPR (Line Printer Daemon Protocol) standar. With this class you will able to print text without any drivers, you only need to write the host (ip) of the printer.

Developed by Pedro Villena ().

Status
------

[](#status)

This project is very much an early work-in-progress. While it is usable, there are no guarantees that it will not break or cause unintended effects.

Getting started
---------------

[](#getting-started)

Assuming you have downloaded the Class PhpNetworkLprPrinter.php, you can get started by including the file in your program:

```
include("PhpNetworkLprPrinter.php");

```

Somewhere you need to initialize the network printer in your code. An example of doing it with a printer located in host 192.168.1.136:

```
$lpr = new PhpNetworkLprPrinter("192.168.1.136");

```

Or if you prefer, including the port:

```
$lpr = new PhpNetworkLprPrinter("192.168.1.136", 515);

```

After initializing the printer, to print some text you need to write the following code:

```
$lpr->printText("Hello world!");

```

Debugging
---------

[](#debugging)

If you like to debug the application, there is a function called "getDebug".

```
$array_debug = $lpr->getDebug();

```

This function returns an array with the following structure:

```
Array
(
[0] => Array
    (
        [message] => string
        [time] => timestamp
        [type] => message / error
    )
[1] => Array
    (
        [message] => string
        [time] => timestamp
        [type] => message / error
    )
....
)

```

License
-------

[](#license)

Copyright 2011 Pedro Villena ().

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~323 days

Total

5

Last Release

1496d ago

PHP version history (3 changes)v1.0.0PHP ^5.3|^7.1

v1.1.0PHP ^7.1

v1.2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1956f0019585e067a8c17676304b6f9442aa9c495c81d4294f5805940ed3fd12?d=identicon)[Seretos](/maintainers/Seretos)

![](https://avatars.githubusercontent.com/u/12692421?v=4)[Björn Welke](/maintainers/bwelke)[@bwelke](https://github.com/bwelke)

![](https://avatars.githubusercontent.com/u/54363266?v=4)[DevOps-Limetec](/maintainers/DevOps-Limetec)[@DevOps-Limetec](https://github.com/DevOps-Limetec)

---

Top Contributors

[![Craswer](https://avatars.githubusercontent.com/u/802508?v=4)](https://github.com/Craswer "Craswer (12 commits)")[![bwelke](https://avatars.githubusercontent.com/u/12692421?v=4)](https://github.com/bwelke "bwelke (1 commits)")[![Seretos](https://avatars.githubusercontent.com/u/18718900?v=4)](https://github.com/Seretos "Seretos (1 commits)")

### Embed Badge

![Health badge](/badges/limetec-php-network-lpr-printer/health.svg)

```
[![Health](https://phpackages.com/badges/limetec-php-network-lpr-printer/health.svg)](https://phpackages.com/packages/limetec-php-network-lpr-printer)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
