PHP code example of rvdv / nntp
1. Go to this page and download the library: Download rvdv/nntp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rvdv / nntp example snippets
use Rvdv\Nntp\Connection\Connection;
use Rvdv\Nntp\Client;
$connection = new Connection('news.php.net', 119);
$client = new Client($connection);
$client->connect();
$overviewFormat = $client->overviewFormat();
$group = $client->group('php.doc');
$articles = $client->xover($group['first'], $group['first'] + 100, $overviewFormat);
// Process the articles further...
$client->disconnect();