{"id":18775163,"url":"https://github.com/robinvdvleuten/php-nntp","last_synced_at":"2025-04-13T09:25:15.321Z","repository":{"id":11901945,"uuid":"14465626","full_name":"robinvdvleuten/php-nntp","owner":"robinvdvleuten","description":"Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.","archived":false,"fork":false,"pushed_at":"2019-02-06T22:51:43.000Z","size":234,"stargazers_count":39,"open_issues_count":5,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-27T01:02:52.550Z","etag":null,"topics":["nntp","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinvdvleuten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-17T11:26:49.000Z","updated_at":"2024-09-20T08:46:49.000Z","dependencies_parsed_at":"2022-09-14T22:03:35.309Z","dependency_job_id":null,"html_url":"https://github.com/robinvdvleuten/php-nntp","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvdvleuten%2Fphp-nntp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvdvleuten%2Fphp-nntp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvdvleuten%2Fphp-nntp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvdvleuten%2Fphp-nntp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinvdvleuten","download_url":"https://codeload.github.com/robinvdvleuten/php-nntp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248689998,"owners_count":21146043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nntp","php"],"created_at":"2024-11-07T19:40:35.156Z","updated_at":"2025-04-13T09:25:15.289Z","avatar_url":"https://github.com/robinvdvleuten.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NNTP\n\nClient for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.\n\n[![Latest Stable Version](https://poser.pugx.org/rvdv/nntp/v/stable)](https://packagist.org/packages/rvdv/nntp)\n[![Build Status](https://travis-ci.org/robinvdvleuten/php-nntp.svg?branch=master)](https://travis-ci.org/robinvdvleuten/php-nntp)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/robinvdvleuten/php-nntp/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/robinvdvleuten/php-nntp/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/robinvdvleuten/php-nntp/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/robinvdvleuten/php-nntp/?branch=master)\n[![StyleCI](https://styleci.io/repos/14465626/shield?branch=master)](https://styleci.io/repos/14465626)\n\n## Installation\n\nThe recommended way to install the library is [through composer](http://getcomposer.org).\n\n```bash\ncomposer require rvdv/nntp:^0.9.0\n```\n\n## NNTP?\n\n\u003e NNTP specifies a protocol for the distribution, inquiry, retrieval,\n\u003e and posting of news articles using a reliable stream (such as TCP)\n\u003e server-client model. NNTP is designed so that news articles need only\n\u003e be stored on one (presumably central) host, and subscribers on other\n\u003e hosts attached to the LAN may read news articles using stream\n\u003e connections to the news host.\n\n\u003e -- RFC Abstract ([source](http://tools.ietf.org/html/rfc977))\n\n## Usage\n\nHere is an example that fetches 100 articles from the _php.doc_ of the _news.php.net_ server:\n\n```php\n\u003c?php\n\nuse Rvdv\\Nntp\\Connection\\Connection;\nuse Rvdv\\Nntp\\Client;\n\n$connection = new Connection('news.php.net', 119);\n$client = new Client($connection);\n\n$client-\u003econnect();\n\n$overviewFormat = $client-\u003eoverviewFormat();\n$group = $client-\u003egroup('php.doc');\n$articles = $client-\u003exover($group['first'], $group['first'] + 100, $overviewFormat);\n\n// Process the articles further...\n\n$client-\u003edisconnect();\n```\n\n## Tests\n\nTo run the test suite, you need install the dependencies via composer, then run PHPUnit.\n\n```bash\n$ composer install\n$ php vendor/bin/phpunit\n```\n\n## License\n\nMIT © [Robin van der Vleuten](https://www.robinvdvleuten.nl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinvdvleuten%2Fphp-nntp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinvdvleuten%2Fphp-nntp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinvdvleuten%2Fphp-nntp/lists"}