PHP code example of aternos / creabit
1. Go to this page and download the library: Download aternos/creabit 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/ */
aternos / creabit example snippets
$fileName = 'level.dat'
$fileContent = file_get_contents($filename)
$creabit = new Creabit($fileContent)
file_put_contents($fileName, $creabit->repair());
bash
php repair.php input_file [output_file]