Download the PHP package animelist/mal-api without Composer
On this page you can find all versions of the php package animelist/mal-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download animelist/mal-api
More information about animelist/mal-api
Files in animelist/mal-api
Download animelist/mal-api
More information about animelist/mal-api
Files in animelist/mal-api
Vendor animelist
Package mal-api
Short Description MyAnimeList.net (un)official API
License BSD-3-Clause
Package mal-api
Short Description MyAnimeList.net (un)official API
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package mal-api
MAL-api
Anime API for MyAnimeList.net written in PHP
Installation
$ composer require animelist/mal-api
Usage
Obtain anime information:
require __DIR__ . '/vendor/autoload.php';
$api = new MalApi\Api;
$url = 'https://myanimelist.net/anime/1/Cowboy_Bebop';
$anime = $api->getAnime($url);
echo 'Anime id: ' . $anime->getExternalId() . '<br>';
var_dump($anime);
Add and update:
require __DIR__ . '/vendor/autoload.php';
$api = new MalApi\Api;
$api->setAuth('user', 'password');
$api->add(['id' => 1, 'status' => $api::STATUS_PLAN_TO_WATCH]);
$api->update(['id' => 1, 'status' => $api::STATUS_WATCHING, 'episode' => 1]);
Delete:
require __DIR__ . '/vendor/autoload.php';
$api = new MalApi\Api;
$api->setAuth('user', 'password');
$api->delete(1);
All versions of mal-api with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
pimple/pimple Version ^3.0
nxnx/net-helper Version ^1.0
nxnx/spec-parser Version ^1.0
pimple/pimple Version ^3.0
nxnx/net-helper Version ^1.0
nxnx/spec-parser Version ^1.0
The package animelist/mal-api contains the following files
Loading the files please wait ....