Download the PHP package alldebrid/alldebrid-php without Composer
On this page you can find all versions of the php package alldebrid/alldebrid-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alldebrid/alldebrid-php
More information about alldebrid/alldebrid-php
Files in alldebrid/alldebrid-php
Package alldebrid-php
Short Description Simple wrapper around Alldebrid API v4 in PHP
License MIT
Homepage https://docs.alldebrid.com
Informations about the package alldebrid-php
alldebrid-php
Simple abstraction wrapper around Alldebrid API v4 in PHP.
Requires PHP 7.1 or newer.
Documentation
The documentation for the Alldebrid API can be found here.
The PHP library documentation can be found in this README. An example folder is also provided to show library usage.
Installation
You can install alldebrid-php in two ways, by using composer or downloading and including the standalone file.
Via Composer:
alldebrid-php is available on Packagist as the
alldebrid/alldebrid-php
package:
Then add the autoloader to your application with this line: require("vendor/autoload.php")
Via include:
A standalone version of this library is provided, just download and include it manually :
Quickstart
Authentication
The Alldebrid API requires an agent and an apikey to authenticate requests. The agent is your app / library name (doc).
You can view , create and manage your API keys in your Alldebrid Apikey dashboard, or generate them remotly (with user action) through the PIN flow (doc / example).
Use and error handling
This library use Go-style error handling by default, but can be configured to use Exception if you choose so.
Using the library with Exceptions
High-level and low-level use
This library provides multiple ways to use the Alldebrid API, once the agent and apikey are set.
The lowest-level use is to call the api() function with the desired endpoint and parameters :
Every API endpoint has its own wrapper function you can use, which handles proper parameters naming and some response checking :
Finally, for links, magnets and pin auth, helper objects are provided to easily interact with them :
Every calls of this library are documented in the example folder.
Configuration
Some options can tweak how this library behaves. The wrapper has a public options array property that you can update.
Getting help
If you need help installing or using the library, please check the Api docs first, check the example codes and then contact us if you don't find an answer to your question.
If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
All versions of alldebrid-php with dependencies
ext-json Version *