PHP code example of metamods / php-modpack-builder
1. Go to this page and download the library: Download metamods/php-modpack-builder 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/ */
metamods / php-modpack-builder example snippets
use MetaMods\Modpack;
$modpack = Modpack::create($name, $version, $summary);
use MetaMods\Resources\Mod;
$modpack->add(new Mod('ae2'));
$modpack->add([
new Mod('ae2'),
new Mod('industrial-craft')
]);
$modpack->build();
use MetaMods\Resources\Mod;
$mod = new Mod('ae2');
SHELL
composer