bvp/stadium

Stadium in the Boatrace Venture Project.

1.0.0 2025-01-11 10:39 UTC

This package is auto-updated.

Last update: 2025-01-14 21:06:15 UTC


README

Build Status codecov Latest Stable Version Latest Unstable Version License

Installation

composer require bvp/stadium

Usage

<?php

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

use Boatrace\Venture\Project\Stadium;

$collection = Stadium::byId(12);
var_dump($collection->get('id')); // int(12)
var_dump($collection->get('name')); // string(27) "ボートレース住之江"
var_dump($collection->get('short_name')); // string(9) "住之江"
var_dump($collection->get('uri')); // string(32) "https://www.boatrace-suminoe.jp/"

$collection = Stadium::byName('ボートレース住之江');
var_dump($collection->get('id')); // int(12)
var_dump($collection->get('name')); // string(27) "ボートレース住之江"
var_dump($collection->get('short_name')); // string(9) "住之江"
var_dump($collection->get('uri')); // string(32) "https://www.boatrace-suminoe.jp/"

$collection = Stadium::byShortName('住之江');
var_dump($collection->get('id')); // int(12)
var_dump($collection->get('name')); // string(27) "ボートレース住之江"
var_dump($collection->get('short_name')); // string(9) "住之江"
var_dump($collection->get('uri')); // string(32) "https://www.boatrace-suminoe.jp/"

$collection = Stadium::byUri('suminoe');
var_dump($collection->get('id')); // int(12)
var_dump($collection->get('name')); // string(27) "ボートレース住之江"
var_dump($collection->get('short_name')); // string(9) "住之江"
var_dump($collection->get('uri')); // string(32) "https://www.boatrace-suminoe.jp/"

License

Stadium in the Boatrace Venture Project is open source software licensed under the MIT license.