PHPackages                             kduma/lpd - 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. kduma/lpd

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

kduma/lpd
=========

LPD Client for PHP

v0.2.0(2mo ago)01.1k21PHPPHP ^8.3

Since Apr 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/PHP-LPD)[ Packagist](https://packagist.org/packages/kduma/lpd)[ RSS](/packages/kduma-lpd/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

PHP LPD
=======

[](#php-lpd)

[![Latest Stable Version](https://camo.githubusercontent.com/de45a0b0428455670743fab2ac7e6f6a3f90b545082ea6380ef3e40b330b4945/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f6c70642f762f737461626c652e737667)](https://packagist.org/packages/kduma/lpd)[![Total Downloads](https://camo.githubusercontent.com/7105f8edeb205a5acd5851799236ef05505e282ad57edb01e06b253f0669b36e/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f6c70642f646f776e6c6f6164732e737667)](https://packagist.org/packages/kduma/lpd)[![License](https://camo.githubusercontent.com/2997d5e764151d99915b3378c08a58d92cb272e510188c111ba35f330bfe366d/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f6c70642f6c6963656e73652e737667)](https://packagist.org/packages/kduma/lpd)

LPD (Line Printer Daemon) client and server implementation in pure PHP.

Full documentation: [opensource.duma.sh/libraries/php/lpd](https://opensource.duma.sh/libraries/php/lpd)

Requirements
------------

[](#requirements)

- PHP `^8.3`

Installation
------------

[](#installation)

```
composer require kduma/lpd
```

Usage
-----

[](#usage)

### Client

[](#client)

```
$configuration = new KDuma\LPD\Client\Configuration(
    address: '192.168.1.100',
    queue: 'PASSTHRU',
    port: 515,
    timeout: 30,
);

$job = new KDuma\LPD\Client\Jobs\TextJob("Hello, Printer!");

(new KDuma\LPD\Client\PrintService($configuration))->sendJob($job);
```

### Server

[](#server)

```
(new KDuma\LPD\Server\Server())
    ->setAddress('0.0.0.0')
    ->setPort(515)
    ->setHandler(function (string $data, mixed $ctrl): void {
        echo $data;
    })
    ->run();
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance85

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% 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 ~2547 days

Total

2

Last Release

75d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d09451622719c7efce1a7971b8e5a875859504882ba2b8c279d1015a99e8f12c?d=identicon)[kduma](/maintainers/kduma)

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (25 commits)")[![vakata](https://avatars.githubusercontent.com/u/146052?v=4)](https://github.com/vakata "vakata (4 commits)")

---

Tags

lpdphpprinting

### Embed Badge

![Health badge](/badges/kduma-lpd/health.svg)

```
[![Health](https://phpackages.com/badges/kduma-lpd/health.svg)](https://phpackages.com/packages/kduma-lpd)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/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

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

PHPackages © 2026

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