承接 joostfaassen/vndb-client-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

joostfaassen/vndb-client-php

Composer 安装命令:

composer require joostfaassen/vndb-client-php

包简介

API client for vndb.org

README 文档

README

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

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.

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:

    https://vndb.org/d11

Composer / Packagist

The library is available on packagist.org as joostfaassen/vndb-client-php

License

MIT

统计信息

  • 总下载量: 29
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-03