bvp/stadium

The BVP Stadium for Boatrace.

5.1.1 2025-08-14 11:23 UTC

This package is auto-updated.

Last update: 2025-08-15 02:26:57 UTC


README

tests codecov php stable unstable license

The BVP Stadium provides structured data about all Japanese boatrace stadiums, including their names in various scripts (Kanji, Hiragana, Katakana, English), url information, and identifier numbers.

Installation

composer require bvp/stadium

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use BVP\Stadium\Stadium;

/**
 * @return array
 */
$stadium = Stadium::byNumber(12);
// or $stadium = Stadium::byNumber([12]);

print_r($stadium);

/*------------------------------
Array
(
    [number] => 12
    [name] => ボートレース住之江
    [short_name] => 住之江
    [hiragana_name] => ぼーとれーすすみのえ
    [katakana_name] => ボートレーススミノエ
    [english_name] => suminoe
    [url] => https://www.boatrace-suminoe.jp/
)
------------------------------*/

/**
 * @return array
 */
$stadium = Stadium::byName('ボートレース住之江');
// or $stadium = Stadium::byName(['ボートレース住之江']);

/**
 * @return array
 */
$stadium = Stadium::byShortName('住之江');
// or $stadium = Stadium::byShortName(['住之江']);

/**
 * @return array
 */
$stadium = Stadium::byHiraganaName('すみのえ');
// or $stadium = Stadium::byHiraganaName(['すみのえ']);

/**
 * @return array
 */
$stadium = Stadium::byKatakanaName('スミノエ');
// or $stadium = Stadium::byKatakanaName(['スミノエ']);

/**
 * @return array
 */
$stadium = Stadium::byEnglishName('suminoe');
// or $stadium = Stadium::byEnglishName(['suminoe']);

/**
 * @return array
 */
$stadium = Stadium::byUrl('suminoe');
// or $stadium = Stadium::byUrl(['suminoe']);

License

The BVP Stadium is open source software licensed under the MIT license.