2017 © Pedro Peláez
 

library php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

image

kissifrot/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  • Wednesday, November 2, 2016
  • by kissifrot
  • Repository
  • 2 Watchers
  • 1 Stars
  • 239 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

NNTP

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol., (*1)

Latest Stable Version Build Status Build status Scrutinizer Code Quality Code Coverage Gittip SensioLabsInsight, (*2)

Installation

The recommended way to install the library is through composer., (*3)

{
    "require": {
        "rvdv/nntp": "^0.8"
    }
}

NNTP?

NNTP specifies a protocol for the distribution, inquiry, retrieval, and posting of news articles using a reliable stream (such as TCP) server-client model. NNTP is designed so that news articles need only be stored on one (presumably central) host, and subscribers on other hosts attached to the LAN may read news articles using stream connections to the news host., (*4)

-- RFC Abstract (source), (*5)

Usage

Here is an example that fetches 100 articles from the php.doc of the news.php.net server:, (*6)

<?php

use Rvdv\Nntp\Connection\Connection;
use Rvdv\Nntp\Client;

$connection = new Connection('news.php.net', 119);
$client = new Client($connection);

$client->connect();

$command = $client->overviewFormat();
$overviewFormat = $command->getResult();

$command = $client->group('php.doc');
$group = $command->getResult();

$command = $client->xover($group['first'], $group['first'] + 100, $overviewFormat);
$articles = $command->getResult();

// Process the articles further...

$client->disconnect();

Tests

To run the test suite, you need install the dependencies via composer, then run PHPUnit., (*7)

$ composer install
$ php vendor/bin/phpunit

License

MIT, see LICENSE, (*8)

The Versions

02/11 2016

dev-master

9999999-dev https://github.com/kissifrot/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.6|^7.0

 

The Development Requires

by Philippe Villiers

02/11 2016

dev-patch-1

dev-patch-1 https://github.com/robinvdvleuten/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.5|^7.0

 

The Development Requires

28/10 2016

v0.10.0

0.10.0.0 https://github.com/kissifrot/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.6|^7.0

 

The Development Requires

by Philippe Villiers

22/10 2016

v0.9.1

0.9.1.0 https://github.com/kissifrot/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.6|^7.0

 

The Development Requires

by Philippe Villiers

22/10 2016

v0.9.0

0.9.0.0 https://github.com/kissifrot/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.6|^7.0

 

The Development Requires

by Philippe Villiers

26/09 2016

v0.8.0

0.8.0.0 https://github.com/robinvdvleuten/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.5|^7.0

 

The Development Requires

15/02 2016

v0.7.0

0.7.0.0 https://github.com/robinvdvleuten/php-nntp

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php ^5.5|^7.0

 

The Development Requires

20/08 2014

v0.6.0

0.6.0.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

31/07 2014

v0.5.0

0.5.0.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

03/03 2014

v0.4.0

0.4.0.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

13/01 2014

v0.3.2

0.3.2.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

10/01 2014

v0.3.1

0.3.1.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

10/01 2014

v0.3.0

0.3.0.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

18/12 2013

v0.2.0

0.2.0.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

03/12 2013

v0.1.0

0.1.0.0

Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires