PHP code example of valgorithms / pzconfighelper
1. Go to this page and download the library: Download valgorithms/pzconfighelper 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/ */
valgorithms / pzconfighelper example snippets
use PZConfigHelper\PZConfigHelper;
$path = 'D:\\SteamLibrary\\steamapps\\workshop\\content\\108600';
$helper = new PZConfigHelper($path);
// Manually regenerate the lists
$helper->generateModLists($path);
// Save the lists to files
$helper->saveToFile(getcwd());
// Access the generated lists directly
echo $helper->mods;
echo $helper->ids;
echo $helper->both;
sh
php example.php --path='D:\\SteamLibrary\\steamapps\\workshop\\content\\108600'