128na/php-makeobj-wrapper

PHP makeobj wrapper form Simutrans

0.1.6 2021-08-21 08:14 UTC

This package is auto-updated.

Last update: 2024-11-21 15:38:54 UTC


README

PHPからmakeobjを実行できるラッパークラスです。

install

composer require 128na/php-makeobj-wrapper

usage

Windows,Linuxで実行可能です。

<?php
use _128Na\Simutrans\Makeobj\Makeobj;

$makeobj = new Makeobj(Makeobj::OS_LINUX); // or Makeobj::OS_WIN

$response = $makeobj->version();

echo $reponse;
// --- stdout ---
// Makeobj version 60.5 for Simutrans 122.0 and higher
// ...