PHP code example of 128na / php-makeobj-wrapper

1. Go to this page and download the library: Download 128na/php-makeobj-wrapper 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/ */

    

128na / php-makeobj-wrapper example snippets


composer 


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
// ...