retrolux/omm-php-library 问题修复 & 功能扩展

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

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

retrolux/omm-php-library

Composer 安装命令:

composer require retrolux/omm-php-library

包简介

Open Mod Manager PHP library for web remote repositories

README 文档

README

This is a PHP Web library to manage remote repositories for the Open Mod Manager.

Features:

  • Generate Repository XML based on mod package sorted in a folder structure
  • Ability to issue repository tasks over the command line (cron jobs etc.)
  • Package and Repository object handling allowing easy extension to build it into your web frontend

Requirements

  • PHP 7.4+ (using PHP 8.1+ will speed up the library)
  • ImageMagick
  • DOM Extension
  • SimpleXML Extension
  • MBString Extension
  • Zip Extension
  • Fileinfo Extension

Installation

Composer

To install with Composer, simply require the latest version of this package. Install it as a global library in case you only want to use if from the command line

composer global require retrolux/omm-php-library

Command Line options

generateFolderRepository

Generates a networked repository from a folder structure with the contained mod archives.

Note:
Needs to be called within the folder that is accessible through the web server and located side by side the folder it should be looked for mod archives.

Usage Options:

OMMTask generateFolderRepository <xmlName> <repositoryName> <packageRootPath> (<recursive>)
Arguments:
        xmlName                   : name and path of the repository xml
        repositoryName            : name for the repository
        packageRootPath           : root path where the mod packages are placed relative to repository xml location
        recursive                 : true if the sub folders should be processed as well (Default: true)

The example below will generate the Mod Download Repository saved into repository.xml scanning for the packages in the mods folder and subdirectories (relative to the xml).

OMMTask generateFolderRepository "repository.xml" "Mod Download Repository" "mods"

How to Contribute

To keep this library up to date or to extend it with new tasks etc. I would be great use pull request into this repository.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-01-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固