PHPackages                             rvdv/react-nntp - 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. rvdv/react-nntp

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

rvdv/react-nntp
===============

Network News Transfer Protocol (NNTP) bindings for React.

1233[3 issues](https://github.com/robinvdvleuten/react-nntp/issues)PHP

Since Jan 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/robinvdvleuten/react-nntp)[ Packagist](https://packagist.org/packages/rvdv/react-nntp)[ RSS](/packages/rvdv-react-nntp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NNTP Component
==============

[](#nntp-component)

Network News Transfer Protocol (NNTP) bindings for [React](http://reactphp.org). This component builds on top of the `SocketClient` component to implement NNTP.

[![Latest Stable Version](https://camo.githubusercontent.com/e61f78c893bebd81066bfd6a108809c708f810d17cdbfc9d01be4ab1f48e1ecf/68747470733a2f2f706f7365722e707567782e6f72672f727664762f72656163742d6e6e74702f762f737461626c652e706e67)](https://packagist.org/packages/rvdv/react-nntp)[![Total Downloads](https://camo.githubusercontent.com/402e36bcf83f3fd60e04199f749904429e085e7676ffe2e36c94460bdc01347b/68747470733a2f2f706f7365722e707567782e6f72672f727664762f72656163742d6e6e74702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/rvdv/react-nntp)[![Latest Unstable Version](https://camo.githubusercontent.com/4fc7039e4344c77be120f41d330b438cfc1431cdfd3df22237e9521b1534f52f/68747470733a2f2f706f7365722e707567782e6f72672f727664762f72656163742d6e6e74702f762f756e737461626c652e706e67)](https://packagist.org/packages/rvdv/react-nntp)[![Build Status](https://camo.githubusercontent.com/f660ddcc425e307a9880218d5454c8010624aa060727cc17bd82667599fbde05/68747470733a2f2f7472617669732d63692e6f72672f526f62696e7664566c657574656e2f72656163742d6e6e74702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/RobinvdVleuten/react-nntp) [![Coverage Status](https://camo.githubusercontent.com/9c4465e499fa4cfa1c68371b0dfa04787ea807cded3b51755d6cdd2319b36d39/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f526f62696e7664566c657574656e2f72656163742d6e6e74702f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/RobinvdVleuten/react-nntp)[![SensioLabsInsight](https://camo.githubusercontent.com/e9e328fbf6c52b5998d55628c80eeb83bef8e4e436cbf5b6aa6d00f1c0b08bb3/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35316663626639332d313563362d346432642d393237362d3536383837353137353463332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/51fcbf93-15c6-4d2d-9276-5688751754c3)

Install
-------

[](#install)

The recommended way to install react-nntp is [through composer](http://getcomposer.org).

```
{
    "require": {
        "rvdv/react-nntp": "1.0.*@dev"
    }
}
```

Basic Usage
-----------

[](#basic-usage)

Here is a simple example that fetches the first 100 articles from the 'php.doc' newsgroup of the PHP mailing list.

```
use React\Dns\Resolver\Factory as ResolverFactory;
use React\EventLoop\Factory as EventLoopFactory;
use Rvdv\React\Nntp\Client;
use Rvdv\React\Nntp\Command\CommandInterface;
use Rvdv\React\Nntp\Response\ResponseInterface;

$loop = EventLoopFactory::create();

$dnsResolverFactory = new ResolverFactory();
$dns = $dnsResolverFactory->createCached('8.8.8.8', $loop);

$client = Client::factory($loop, $dns);

$group = null;
$format = null;

$client
    ->connect('news.php.net', 119)
    ->then(function (ResponseInterface $response) use ($client) {
        return $client->overviewFormat();
    })
    ->then(function (CommandInterface $command) use (&$format, $client) {
        $format = $command->getResult();

        return $client->group('php.doc');
    })
    ->then(function (CommandInterface $command) use (&$group, &$format, $client) {
        $group = $command->getResult();

        return $client->overview($group->getFirst() . '-' . ($group->getFirst() + 99), $format);
    })
    ->then(function (CommandInterface $command) use ($client) {
        $articles = $command->getResult();
        // Process the articles further.

        $client->stop();
    });

$client->run();
```

Tests
-----

[](#tests)

To run the test suite, you need PHPUnit.

```
$ phpunit
```

Vagrant
-------

[](#vagrant)

You can also use the configured [Vagrant](http://www.vagrantup.com) VM for local development. Move into the `/vagrant` directory and run the following commands;

```
# Resolve the Puppet dependencies through librarian-puppet.
$ gem install librarian-puppet
$ librarian-puppet install

$ vagrant up
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/074cb4e1046125c06710b447947c86ee0466d687d89fe0582bf9b9dd4cb351ac?d=identicon)[robinvdvleuten](/maintainers/robinvdvleuten)

### Embed Badge

![Health badge](/badges/rvdv-react-nntp/health.svg)

```
[![Health](https://phpackages.com/badges/rvdv-react-nntp/health.svg)](https://phpackages.com/packages/rvdv-react-nntp)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

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

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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