PHPackages                             williameggers/reactphp-rlogin - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. williameggers/reactphp-rlogin

ActiveLibrary[Queues &amp; Workers](/categories/queues)

williameggers/reactphp-rlogin
=============================

An rlogin client for ReactPHP

1.0.2(11mo ago)155BSD-2-ClausePHPPHP &gt;=8.2CI passing

Since Aug 16Pushed 11mo agoCompare

[ Source](https://github.com/williameggers/reactphp-rlogin)[ Packagist](https://packagist.org/packages/williameggers/reactphp-rlogin)[ RSS](/packages/williameggers-reactphp-rlogin/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (12)Versions (4)Used By (0)

RLogin client for ReactPHP
==========================

[](#rlogin-client-for-reactphp)

[![CI status](https://github.com/williameggers/reactphp-rlogin/workflows/CI/badge.svg)](https://github.com/williameggers/reactphp-rlogin/actions)[![Latest Stable Version](https://camo.githubusercontent.com/9e26369480d437f681d412ef67b9dd2fae66d344b18403c5b42cbba132b305f8/687474703a2f2f706f7365722e707567782e6f72672f77696c6c69616d6567676572732f72656163747068702d726c6f67696e2f76)](https://packagist.org/packages/williameggers/reactphp-rlogin)[![Latest Unstable Version](https://camo.githubusercontent.com/2a2dbaaf730cb0b12dd7a81305e39599633da93a4f048e243705c6239ea4389c/687474703a2f2f706f7365722e707567782e6f72672f77696c6c69616d6567676572732f72656163747068702d726c6f67696e2f762f756e737461626c65)](https://packagist.org/packages/williameggers/reactphp-rlogin)[![License](https://camo.githubusercontent.com/dfa8e36695fe89b9b93665606c2c7be256c28d1fe3b602d59ebf5903c35e5ae1/687474703a2f2f706f7365722e707567782e6f72672f77696c6c69616d6567676572732f72656163747068702d726c6f67696e2f6c6963656e7365)](https://packagist.org/packages/williameggers/reactphp-rlogin)

An asynchronous [RLogin](https://datatracker.ietf.org/doc/html/rfc1282) client for PHP, built on [ReactPHP](https://reactphp.org/). Supports client escape sequences, terminal window resizing, and full event-driven interaction.

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

[](#installation)

Install via Composer:

```
composer require williameggers/reactphp-rlogin
```

Usage example
-------------

[](#usage-example)

```
use WilliamEggers\React\RLogin\RLogin;

// All of these options are required
$client = new RLogin([
    'host' => 'rlogin.example.com',
    'port' => 513,
    'clientUsername' => 'localuser',
    'serverUsername' => 'remoteuser',
    'terminalType' => 'vt100',
    'terminalSpeed' => 9600,
]);

// Now that the events will be handled properly, we can connect ...
$client->connect()->then(function (Connection $connection) {
    // If data has been received from the server ...
    $connection->on('data', function ($data) {
        echo "Received: $data";
    });

    // If there was an error ...
    $connection->on('error', function (\Throwable $error) {
        echo 'Error: ' . $error->getMessage() . "\n";
    });

    // If we've been disconnected ...
    $connection->on('close', function () {
        echo "Closed\n";
    });
});
```

Contributions
-------------

[](#contributions)

Contributions are welcome and encouraged!

To contribute:

1. Fork the repository.
2. Create a new branch for your changes.
3. Submit a pull request with a clear description of what you've done and why.

Please try to follow existing coding style and conventions, and include tests if applicable. Feel free to open an issue if you'd like to discuss a potential change or need guidance on where to start.

License
-------

[](#license)

BSD 2-Clause License

Copyright (c) 2025, William Eggers

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance51

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~12 days

Total

3

Last Release

341d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6848430?v=4)[William Eggers](/maintainers/williameggers)[@williameggers](https://github.com/williameggers)

---

Top Contributors

[![williameggers](https://avatars.githubusercontent.com/u/6848430?v=4)](https://github.com/williameggers "williameggers (5 commits)")

---

Tags

asyncclientreactphpRLogin

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/williameggers-reactphp-rlogin/health.svg)

```
[![Health](https://phpackages.com/badges/williameggers-reactphp-rlogin/health.svg)](https://phpackages.com/packages/williameggers-reactphp-rlogin)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.6k344.8k1](/packages/ccxt-ccxt)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M28.0k](/packages/friendsofphp-php-cs-fixer)[react/socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP

1.3k143.0M487](/packages/react-socket)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78028.1M486](/packages/react-http)[clue/redis-react

Async Redis client implementation, built on top of ReactPHP.

28218.9M51](/packages/clue-redis-react)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)

PHPackages © 2026

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