PHPackages                             flatgreen/rfrance - 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. flatgreen/rfrance

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

flatgreen/rfrance
=================

Scrape R A D I O F R A N C E

v2.6.1(4w ago)0671MITPHPPHP &gt;=8.1

Since Jun 30Pushed 4w ago1 watchersCompare

[ Source](https://github.com/flatgreen/rfrance)[ Packagist](https://packagist.org/packages/flatgreen/rfrance)[ RSS](/packages/flatgreen-rfrance/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (15)Versions (26)Used By (1)

RFrance
=======

[](#rfrance)

PHP library for french radio. RFrance a class to scrape and parse r a d i o f r a n c e

Prerequisites
-------------

[](#prerequisites)

- php &gt;= 8.1

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

[](#installation)

- Use the package manager [composer](https://getcomposer.org/) to install RFrance.

```
composer require flatgreen/rfrance
```

- Optional: Create a 'cache' directory (with read|write permissions), by default the cache directory is inside the system temporary directory.

Usage
-----

[](#usage)

```
require_once 'vendor/autoload.php';
use Flatgreen\RFrance\RFrance;
```

Instantiate the class, extract with an URL page

```
$rf = new RFrance(); // optional in constructor, add cache directory and cache duration for page, 1 day by default.

try {
    $rf->extract(URL); // optional: set a (approx.) limit $max_items (default: -1, all items)
} catch (\Throwable $th) {
    // ...
}
```

Read the informations

```
if (empty($rf->error)){
    $title = $rf->page->title;
    $all_items = $rf->page->all_items; // array of Item
    ...
}
```

All properties for Item, in [Item.php](/src/Item.php).

Three output helpers :

```
// to array
echo $FC->toArray();

// RSS 2.0, always return informations (even with no item)
// Be carefull, max_items is not present in the feed
header("Content-Type: text/xml; charset=UTF-8");
echo $FC->toRss();

// or

// youtube-dl|yt-dlp info.json like, maybe empty if no item
header('Content-Type: application/json; charset=utf-8');
echo $FC->toInfoJson();
```

### Remarks

[](#remarks)

Does not take into account some pages that are not broadcasts.

### Changelog

[](#changelog)

[changelog](/CHANGELOG.md)

License
-------

[](#license)

RFrance is licensed under the MIT License (MIT). Please see the [license file](/LICENSE) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance94

Actively maintained with recent releases

Popularity9

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

Recently: every ~90 days

Total

25

Last Release

28d ago

Major Versions

v1.3.4 → v2.02024-12-31

PHP version history (2 changes)v1.3.4PHP &gt;=8.0.2

v2.4.5PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15235232?v=4)[flatgreen](/maintainers/flatgreen)[@flatgreen](https://github.com/flatgreen)

---

Top Contributors

[![flatgreen](https://avatars.githubusercontent.com/u/15235232?v=4)](https://github.com/flatgreen "flatgreen (30 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/flatgreen-rfrance/health.svg)

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

###  Alternatives

[symfony/expression-language

Provides an engine that can compile and evaluate expressions

2.8k223.4M1.9k](/packages/symfony-expression-language)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[metamodels/core

MetaModels core

10156.4k67](/packages/metamodels-core)[firevel/firebase-authentication

Firebase authentication driver for Laravel

2225.0k3](/packages/firevel-firebase-authentication)

PHPackages © 2026

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