2017 © Pedro Peláez
 

library vndb-client-php

API client for vndb.org

image

joostfaassen/vndb-client-php

API client for vndb.org

  • Saturday, January 3, 2015
  • by joostfaassen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 18 % Grown

The README.md

vndb-client-php

A vndb.org client for PHP. It can be used both as a PHP library and as a stand-alone CLI tool, (*1)

Library usage:

use VndbClient\Client;

$client = new Client();
$client->connect();
$client->login($username, $password);
$res = $client->sendCommand('dbstats'); // send raw command
$res = $client->getVisualNovelDataById(5);
$res = $client->getReleaseDataById(21446);
$res = $client->getProducerDataById(24);
$res = $client->getCharacterDataById(537);

All methods return a VndbClient\Response object, containing ->getType() and ->getData() methods to read the response., (*2)

CLI usage

./bin/vndb-client vndb:getbyid your_username your_password vn 5
./bin/vndb-client vndb:getbyid your_username your_password release 5
./bin/vndb-client vndb:getbyid your_username your_password producer 5
./bin/vndb-client vndb:getbyid your_username your_password character 5

The VNDB Protocol

For details on the workings of this API, and for a description of the returned data, please check:, (*3)

    https://vndb.org/d11

Composer / Packagist

The library is available on packagist.org as joostfaassen/vndb-client-php, (*4)

License

MIT, (*5)

The Versions

03/01 2015

dev-master

9999999-dev https://github.com/joostfaassen/vndb-client-php

API client for vndb.org

  Sources   Download

MIT

The Requires

 

api client vndb