PHP code example of turnmark / scraper-mikuni

1. Go to this page and download the library: Download turnmark/scraper-mikuni library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

turnmark / scraper-mikuni example snippets




urnmark\Scraper\Mikuni\BatchScraper;
use Turnmark\Scraper\Mikuni\Scraper;

// オリジナル展示タイムを取得
$time = Scraper::scrapeTime('2026-06-28', 12);
$timeBatch = BatchScraper::scrapeTime('2026-06-28', [10, 11, 12]);

// 例: ボートレース三国の公式サイトから 2026年06月28日 の 12 レースの出走表を取得
$time = Scraper::scrapeTime('2026-06-28', 12);

print_r($time);

Array
(
    [date] => 2026-06-28
    [stadium_number] => 10
    [race_number] => 12
    [racers] => Array
        (
            [1] => Array
                (
                    [entry_number] => 1
                    [name] => 青木 玄太
                    [exhibition_time] => 6.85
                    [lap_time] => 36.73
                    [turn_time] => 5.42
                    [straight_time] => 6.77
                )

            [2] => Array
                (
                    [entry_number] => 2
                    [name] => 前沢 丈史
                    [exhibition_time] => 6.84
                    [lap_time] => 38.78
                    [turn_time] => 6.97
                    [straight_time] => 6.87
                )

            [3] => Array
                (
                    [entry_number] => 3
                    [name] => 福田 宗平
                    [exhibition_time] => 6.86
                    [lap_time] => 37.48
                    [turn_time] => 5.75
                    [straight_time] => 6.75
                )

            [4] => Array
                (
                    [entry_number] => 4
                    [name] => 浜先 真範
                    [exhibition_time] => 6.91
                    [lap_time] => 37.22
                    [turn_time] => 5.65
                    [straight_time] => 6.87
                )

            [5] => Array
                (
                    [entry_number] => 5
                    [name] => 中村 日向
                    [exhibition_time] => 6.7
                    [lap_time] => 36.68
                    [turn_time] => 5.58
                    [straight_time] => 6.77
                )

            [6] => Array
                (
                    [entry_number] => 6
                    [name] => 松本 純平
                    [exhibition_time] => 6.82
                    [lap_time] => 36.85
                    [turn_time] => 5.52
                    [straight_time] => 6.8
                )

        )

)