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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

PHP Build Version
Package Version
Requires php Version >=7.1
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alldebrid/alldebrid-php contains the following files

Loading the files please wait ....