2017 © Pedro Peláez
 

library vndbclient

VNDB PHP Client for Laravel

image

shikakunhq/vndbclient

VNDB PHP Client for Laravel

  • Sunday, June 10, 2018
  • by shikakunhq
  • Repository
  • 1 Watchers
  • 0 Stars
  • 136 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

VNDB PHP Client for Laravel

Configuration

Add the package to project dependencies, (*1)

composer require shikakunhq/vndbclient:dev-master, (*2)

Register the provider in config/app.php, (*3)

Shikakunhq\VNDBClient\VNDBServiceProvider::class, (*4)

Pull configuration from vendor. Then config will goes to config/vndb.php, (*5)

php artisan vendor:publish --provider="Shikakunhq\VNDBClient\VNDBServiceProvider" --tag="config", (*6)

Basic Usage

Retrieving information
use Shikakunhq\VNDBClient\VNDBRequest;
class HomeController {
  public function index() {
    dd(VNDBRequest::getInfobyId(22152));
  }
}

Result, (*7)

{array ▼
  +"id": 22152
  +"producer_id": 930
  +"title": "Koi Suru Kokoro to Mahou no Kotoba"
  +"producer": "Hearts"
  +"original": "恋するココロと魔法のコトバ"
  +"aliases": """
    Koikoro\n
    恋コロ\n
    Heart in Love, Word of Magic
    """
  +"released": "2018-05-25"
  +"description": """
    Narumi is a second-year student at Asanoha Gakuen. One day, he headed to the Garden Club room to return something left behind by his classmate Kazane, but he in ▶
    \n
    """
  +"image": "s.vndb.org/cv/32/33932.jpg"
  +"image_nsfw": false
  +"relation": []
  +"characters": array:14 [▼
    0 => array:9 [▼
      "id" => 65569
      "name" => "Haru Haru"
      "original" => "春 ハル"
      "gender" => "f"
      "description" => """
        Race: High level spirit\n
        Breast: Large\n
        \n
        A really energetic high-leveled spirit whose catchphrase is "kiniirimashita~♪."\n
        \n
        Easily getting impressed. Her tears often coming out even for trivial things. An optimist character who can see a person's good side.
        """
      "bloodt" => null
      "image" => "s.vndb.org/ch/87/79387.jpg"
      "aliases" => "Haruharu"
      "role" => "primary"
    ]
    2 => array:9 [▶]
    4 => array:9 [▶]
    6 => array:9 [▶]
    8 => array:9 [▶]
    10 => array:9 [▶]
    12 => array:9 [▶]
    14 => array:9 [▶]
    16 => array:9 [▶]
    18 => array:9 [▶]
    20 => array:9 [▶]
    22 => array:9 [▶]
    24 => array:9 [▶]
    26 => array:9 [▶]
  ]
}

Custom Commands
use Shikakunhq\VNDBClient\VNDBRequest;
class HomeController {
  public function index() {
    dd(VNDBRequest::command('get vn basic,details (title="Wagamama High Spec")');
  }
}

Visit API Documentation for more usage, (*8)

The Versions

10/06 2018

dev-master

9999999-dev

VNDB PHP Client for Laravel

  Sources   Download

MIT

The Requires

 

by Yodd

09/06 2018

dev-analysis-zYwma0

dev-analysis-zYwma0

VNDB PHP Client for Laravel

  Sources   Download

MIT

The Requires

 

by Yodd

09/06 2018

dev-analysis-q14e03

dev-analysis-q14e03

VNDB PHP Client for Laravel

  Sources   Download

MIT

The Requires

 

by Yodd

01/05 2018

dev-analysis-qv2JBr

dev-analysis-qv2JBr

VNDB PHP Client for Laravel

  Sources   Download

MIT

The Requires

 

by Yodd

10/01 2018

dev-analysis-8bywKl

dev-analysis-8bywKl

VNDB PHP Client for Laravel

  Sources   Download

MIT

The Requires

 

by Yodd

09/01 2018

dev-analysis-8LDNxk

dev-analysis-8LDNxk

VNDB PHP Client for Laravel

  Sources   Download

MIT

The Requires

 

by Yodd