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(1y ago)6281MITPHPPHP &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 1mo ago

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

31

—

LowBetter than 68% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

605d 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://www.gravatar.com/avatar/98cfd20df2fb2e4ce76e7973b74e2e554cb662067352d5a2cacd378f14173928?d=identicon)[rleroi](/maintainers/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[spinen/laravel-clickup

SPINEN's Laravel Package for ClickUp.

282.2k](/packages/spinen-laravel-clickup)

PHPackages © 2026

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