Jonathan Miller 005ae12598 feat: MySQL export reads from config files, hardcode jmiller permissions
export-mysql.yml.template:
- Reads MySQL credentials from remote config files automatically:
  - Joomla: configuration.php ($user, $password, $db)
  - Dolibarr: conf/conf.php ($dolibarr_main_db_*)
- No MySQL secrets needed — credentials come from the app config
- Auto-detects platform (Joomla vs Dolibarr)
- Removed DEV_MYSQL_PASSWORD/DEMO_MYSQL_PASSWORD secret requirements

Permission hardcoding:
- Added ALLOWED_USERS="jmiller gitea-actions[bot]" to:
  deploy-demo, deploy-dev, deploy-rs, branch-freeze templates

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-19 17:18:48 -05:00

MokoStandards Enterprise API

PHP implementation of MokoStandards — 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

Directory Purpose
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
docs/ API documentation, workflow guides, automation docs
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

Variable Purpose
GIT_PLATFORM gitea (default) or github
GA_TOKEN Gitea API / Gitea Actions token
GH_TOKEN GitHub API token (for mirror sync)
GITEA_URL Gitea instance URL (default: https://git.mokoconsulting.tech)
GITEA_ORG Gitea organization (default: MokoConsulting)

License

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

S
Description
Enterprise automation, validation, sync, and governance engine for all Moko Consulting repositories
Readme
9.8 MiB
2026-05-29 10:52:29 +00:00
Languages
PHP 93.6%
Shell 2.3%
HTML 2%
CSS 1%
JavaScript 0.9%
Other 0.2%