PHPackages                             rleroi/real-debrid - 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. [API Development](/categories/api)
4. /
5. rleroi/real-debrid

ActiveLibrary[API Development](/categories/api)

rleroi/real-debrid
==================

A simple API interface for real-debrid.com

11.0.0(2y ago)6291MITPHPPHP &gt;=8.2

Since Jul 29Pushed 1y agoCompare

[ Source](https://github.com/rleroi/real-debrid)[ Packagist](https://packagist.org/packages/rleroi/real-debrid)[ Docs](https://github.com/ValentinGot/real-debrid)[ RSS](/packages/rleroi-real-debrid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

[Real-Debrid API](https://github.com/ValentinGot/real-debrid)
=============================================================

[](#real-debrid-api)

[![Latest Stable Version](https://camo.githubusercontent.com/ecb4dfe0be7bb20a4f6101a36b8157eb04124d505bb2da3c1b7f73d84302a4ff/68747470733a2f2f706f7365722e707567782e6f72672f726c65726f692f7265616c2d6465627269642f762f737461626c65)](https://packagist.org/packages/rleroi/real-debrid)[![Build Status](https://camo.githubusercontent.com/7b972b154233e02a73d1fc04f83321f3b2091f3f01b4ebb873d4a087e1b48b38/68747470733a2f2f7472617669732d63692e6f72672f56616c656e74696e476f742f7265616c2d6465627269642e737667)](https://travis-ci.org/ValentinGot/real-debrid)

> A simple API interface for real-debrid.com.

It allows you to communicate with Real-Debrid API and do things like unrestrict your download links or download some torrent files.

Getting started
---------------

[](#getting-started)

### Install

[](#install)

You may install the Real-Debrid API with Composer (recommended) or manually.

**Via [Composer](https://getcomposer.org) (preferred method)**

```
$ composer require rleroi/real-debrid

```

**Manually**

If you don't want/have composer installed on your computer, you can manually download the library by cloning it with git.

```
$ git clone https://github.com/rleroi/real-debrid.git

```

### System Requirements

[](#system-requirements)

You need **PHP &gt;= 5.6.0**.

### Authentication

[](#authentication)

To retrieve your token, you must authenticate to [Real-Debrid](https://real-debrid.com/) and then go to the following URL:

You must have a Real-Debrid premium account to access most of the API features.

Basic usage
-----------

[](#basic-usage)

This section provides a quick introduction to Real-Debrid API interface and some examples.

### Creating a client

[](#creating-a-client)

```
use \RealDebrid\RealDebrid;
use \RealDebrid\Auth\Token;

$token = new Token('MY_TOKEN');
$realDebrid = new RealDebrid($token);
```

### Using the API

[](#using-the-api)

Here is some examples on how to use the Real-Debrid API.

If you want more information about the available requests, please refer to the [Available requests](https://valentingot.github.io/real-debrid/available_requests) section of the documentation.

```
// Retrieve user information
$userInformation = $realDebrid->user->get();

// Unrestrict a link
$link = $realDebrid->unrestrict->link('http://MY_LINK');

// Add a magnet link and start the torrent
$torrent = $realDebrid->torrents->addMagnet('magnet:MY_MAGNET_LINK');
$realDebrid->torrents->selectFiles($torrent->id);

// Retrieve torrents list
$torrentQueue = $realDebrid->torrents->get();
```

Documentation
-------------

[](#documentation)

The current version can be seen at [valentingot.github.io/real-debrid](https://valentingot.github.io/real-debrid).

License
-------

[](#license)

The Real-Debrid API is released under the MIT license.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.6% 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 ~206 days

Total

3

Last Release

659d ago

Major Versions

9.0.0 → 11.0.02024-06-08

PHP version history (2 changes)9.0.0PHP &gt;=5.6.0

11.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6817390?v=4)[R. Leroi](/maintainers/rleroi)[@rleroi](https://github.com/rleroi)

---

Top Contributors

[![ValentinGot](https://avatars.githubusercontent.com/u/14924373?v=4)](https://github.com/ValentinGot "ValentinGot (161 commits)")[![rleroi](https://avatars.githubusercontent.com/u/6817390?v=4)](https://github.com/rleroi "rleroi (11 commits)")

---

Tags

downloadtorrentmagnetreal-debrid.comunrestrictapi.real-debrid.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rleroi-real-debrid/health.svg)

```
[![Health](https://phpackages.com/badges/rleroi-real-debrid/health.svg)](https://phpackages.com/packages/rleroi-real-debrid)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M992](/packages/statamic-cms)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/support

The Illuminate Support package.

630113.0M41.5k](/packages/illuminate-support)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[icawebdesign/hibp-php

PHP library for accessing the Have I Been Pwned API.

2549.8k2](/packages/icawebdesign-hibp-php)

PHPackages © 2026

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