定制 mokoconsulting/mokocli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mokoconsulting/mokocli

Composer 安装命令:

composer require mokoconsulting/mokocli

包简介

MokoCLI - enterprise CLI automation, validation, and governance engine for all Moko Consulting repositories

README 文档

README

mokocli Enterprise API

Version PHP License

PHP implementation of mokocli — enterprise standards, automation framework, workflow templates, and bulk sync tooling.

Primary platform: Gitea — git.mokoconsulting.tech Backup mirror: GitHub (read-only mirror)

What Lives Here

DirectoryPurpose
lib/Enterprise/38 PHP enterprise library classes (platform adapters, sync, validation, plugins)
cli/CLI scripts (archive, create, release, sync rulesets, version management)
automation/Bulk sync, push files, repo cleanup, Gitea migration
validate/18 validation scripts (health, structure, secrets, syntax, drift)
templates/Workflow templates and config templates synced to governed repos
definitions/Repository structure definitions (.tf format)
deploy/Deployment scripts (SFTP, Joomla)
maintenance/Labels, inventory, SHA pinning, version sync
tools/Standalone tools (legal doc generator)
tests/PHPUnit test suite

Installation

composer require mokoconsulting-tech/enterprise

Composer Registry

This package is served from Gitea package registry. Add this to your composer.json:

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://git.mokoconsulting.tech/api/packages/MokoConsulting/composer"
        }
    ]
}

CLI Tools

# Health check
vendor/bin/moko health -- --path .

# Sync standards
vendor/bin/moko sync

# Inventory
vendor/bin/moko inventory -- --path .

Platform Configuration

VariablePurpose
GIT_PLATFORMgitea (default) or github
GA_TOKENGitea API / Gitea Actions token
GH_TOKENGitHub API token (for mirror sync)
GITEA_URLGitea instance URL (default: https://git.mokoconsulting.tech)
GITEA_ORGGitea organization (default: MokoConsulting)

License

GPL-3.0-or-later — See LICENSE.md

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-06-21