PHPackages                             eduardorengifo/botnews - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. eduardorengifo/botnews

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eduardorengifo/botnews
======================

Bot News

v1.0.1(7y ago)4232MITPHPPHP &gt;=5.5.0

Since Dec 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/eduardorengifo/botnews)[ Packagist](https://packagist.org/packages/eduardorengifo/botnews)[ RSS](/packages/eduardorengifo-botnews/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

BotNews
=======

[](#botnews)

[![Build Status](https://camo.githubusercontent.com/c0f007193dd44c223ca3c1a041f4f8d45308bdcc5524bf9724c8b2afb301b8bd/68747470733a2f2f7472617669732d63692e6f72672f6564756172646f72656e6769666f2f626f746e6577732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/eduardorengifo/botnews)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Packagist Pre Release](https://camo.githubusercontent.com/38e3691e5e1db19061b4d3f0a92926cfd27d2f02a7f7168a6f7026fe500e1973/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e312d6f72616e67652e737667)](https://packagist.org/packages/eduardorengifo/botnews)![PHP from Packagist](https://camo.githubusercontent.com/f98ff8440a9311ca93de02496c68fd0222bb7a4f9c46af4fa772dc5fe8fb0c0c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545352e352e302d626c75652e737667)

Botnews is a small PHP script to extract news from websites.

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

[](#installation)

To install, use the following to pull the package in via Composer.

```
$ composer require eduardorengifo/botnews

```

Configuration
-------------

[](#configuration)

At the moment there are only two news sites configured. The same settings could be applied for all other available sites.

```
require_once __DIR__ . '/vendor/autoload.php';

$rppPostSlug = 'futbol/seleccion-peruana/video-ricardo-gareca-para-rpp-tenemos-que-tener-los-pies-sobre-la-tierra-en-el-mundial-noticia-1096914';
$rpp = new \BotNews\Sites\Rpp();

/** @var \BotNews\Models\Post $rppPost */
$rppPost = $rpp->getPost( $rppPostSlug );

/** @var \BotNews\Models\Page $rppPage */
$rppPage = $rpp->getPage('futbol');
```

Extend
------

[](#extend)

To set up your own news site using the classes, models and BotNews interface you could use the following template.

```
use BotNews\BotNews;
use BotNews\Client;

class SiteName extends Client implements BotNews
{
	/**
	 * @var string
	 */
	protected $siteUrl = ''; // TODO: Place the web site url

	/**
	 * @param string $slug
	 *
	 * @return Post
	 */
	public function getPost( $slug )
	{
		// TODO: Your code configuration for post
	};

	/**
	 * @param mixed $paged
	 *
	 * @return Page
	 */
	public function getPage( $paged = 1 )
	{
		// TODO: Your code configuration for page
	};
}
```

License
-------

[](#license)

BotNews is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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 ~378 days

Total

2

Last Release

2726d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12243902?v=4)[Eduardo Rengifo](/maintainers/eduardorengifo)[@eduardorengifo](https://github.com/eduardorengifo)

---

Top Contributors

[![eduardorengifo](https://avatars.githubusercontent.com/u/12243902?v=4)](https://github.com/eduardorengifo "eduardorengifo (54 commits)")

---

Tags

botsnewsphp5scraper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eduardorengifo-botnews/health.svg)

```
[![Health](https://phpackages.com/badges/eduardorengifo-botnews/health.svg)](https://phpackages.com/packages/eduardorengifo-botnews)
```

###  Alternatives

[raulr/google-play-scraper

A PHP scraper to get app data from Google Play

12894.3k](/packages/raulr-google-play-scraper)[jansenfelipe/cpf-gratis

Com esse pacote você poderá consultar, gratuitamente, CPFs diretamente no site da receita.

1895.9k](/packages/jansenfelipe-cpf-gratis)[bubbstore/correios

Biblioteca que faz cálculo de frete, rastreamento de objetos e consulta de CEP diretamente do Webservice dos Correios.

2591.6k](/packages/bubbstore-correios)[stefanbauer/ignition-laracasts-tab

A tab to retrieve laracasts.com answers

5311.5k](/packages/stefanbauer-ignition-laracasts-tab)[jansenfelipe/cidades-gratis

Com esse pacote você poderá consultar, gratuitamente, Cidades diretamente no site do IBGE.

423.5k](/packages/jansenfelipe-cidades-gratis)

PHPackages © 2026

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