PHPackages                             vgot/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. vgot/real-debrid

ActiveLibrary[API Development](/categories/api)

vgot/real-debrid
================

A simple API interface for real-debrid.com

2.1.1(10y ago)2343814[3 issues](https://github.com/ValentinGot/real-debrid/issues)MITPHPPHP &gt;=5.6.0

Since Oct 2Pushed 10y ago4 watchersCompare

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

READMEChangelog (4)Dependencies (6)Versions (6)Used By (0)

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

[](#real-debrid-api)

[![Latest Stable Version](https://camo.githubusercontent.com/1d6651cf1a64caf27234ab3b9f6a4e616efd37ac578df25b62319f730a5fead6/68747470733a2f2f706f7365722e707567782e6f72672f76676f742f7265616c2d6465627269642f762f737461626c65)](https://packagist.org/packages/vgot/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 vgot/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/ValentinGot/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

33

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

3805d ago

Major Versions

v1.0 → v2.0.0-alpha2015-12-01

PHP version history (2 changes)v1.0PHP &gt;=5.3.0

2.1.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/779fda751440ff606eb6bee232b31ad763f53a46b48d9d50070c88df5d547576?d=identicon)[Silver](/maintainers/Silver)

---

Top Contributors

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

---

Tags

downloadtorrentmagnetreal-debrid.comunrestrictapi.real-debrid.com

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[ashallendesign/laravel-exchange-rates

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

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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