valgorithms/pzconfighelper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

valgorithms/pzconfighelper

最新稳定版本:v1.0.0

Composer 安装命令:

composer require valgorithms/pzconfighelper

包简介

PZConfigHelper is a PHP tool designed to generate mod lists for Project Zomboid.

README 文档

README

PZConfigHelper is a PHP tool designed to generate mod lists for Project Zomboid from a specified directory structure. It scans directories to create lists of mod IDs and workshop items, and saves these lists to text files.

Installation

Clone the repository to your local machine:

git clone https://github.com/Valgorithms/PZConfigHelper.git

Navigate to the project directory:

cd PZConfigHelper

Install dependencies using Composer:

composer install

Usage

Running the Example Script

Run the script with the --path option to specify the directory containing the mods:

php example.php --path='D:\\SteamLibrary\\steamapps\\workshop\\content\\108600'

This will generate three files in the current working directory:

  • Mods.txt: Contains a list of mod names.
  • WorkshopItems.txt: Contains a list of workshop item IDs.
  • Both.txt: Contains a combined list of mod names and workshop item IDs.

Using the PZConfigHelper Class in Your Own Scripts

You can also use the PZConfigHelper class in your own PHP scripts. Here is an example:

require_once 'vendor/autoload.php';

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;

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Valithor Obsidion valithor@valzargaming.com

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-17