bvp / stadium
Stadium in the Boatrace Venture Project.
1.0.0
2025-01-11 10:39 UTC
Requires
- php: ^8.1
- illuminate/support: ^9.0 || ^10.0 || ^11.0
- php-di/php-di: ^6.1 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.1
README
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.