PHP code example of lichifeng / recanalyst2
1. Go to this page and download the library: Download lichifeng/recanalyst2 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/ */
lichifeng / recanalyst2 example snippets
$rec = new \RecAnalyst\RecordedGame('recorded_game.mgx2');
$rec->mapImage()->save('minimap.png');
foreach ($rec->players() as $player) {
printf("%s (%s)", $player->name, $player->civName());
}
'providers' => [
RecAnalyst\Laravel\ServiceProvider::class,
],
bash
php artisan vendor:publish --tag=public