2026-05-11 17:10:19 -05:00
|
|
|
<!--
|
|
|
|
|
Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
FILE INFORMATION
|
|
|
|
|
DEFGROUP: MokoStandards.Root
|
|
|
|
|
INGROUP: MokoStandards
|
|
|
|
|
REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
|
|
|
|
|
PATH: /README.md
|
2026-05-30 19:11:29 +00:00
|
|
|
VERSION: 09.21.00
|
2026-05-11 17:10:19 -05:00
|
|
|
BRIEF: Project overview and documentation
|
|
|
|
|
-->
|
|
|
|
|
|
2026-04-13 06:12:04 +00:00
|
|
|
# MokoStandards Enterprise API
|
2026-04-13 06:11:22 +00:00
|
|
|
|
2026-05-26 14:27:48 -05:00
|
|
|
  
|
|
|
|
|
|
2026-04-15 02:35:30 +00:00
|
|
|
PHP implementation of MokoStandards — enterprise standards, automation framework, workflow templates, and bulk sync tooling.
|
|
|
|
|
|
2026-04-16 22:21:59 -05:00
|
|
|
> **Primary platform**: [Gitea — git.mokoconsulting.tech](https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API)
|
|
|
|
|
> **Backup mirror**: [GitHub](https://github.com/MokoConsulting/MokoStandards-API) *(read-only mirror)*
|
2026-04-15 02:35:30 +00:00
|
|
|
|
|
|
|
|
## 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 |
|
2026-05-11 16:40:53 -05:00
|
|
|
| `tools/` | Standalone tools (legal doc generator) |
|
2026-04-15 02:35:30 +00:00
|
|
|
| `tests/` | PHPUnit test suite |
|
2026-04-13 06:12:04 +00:00
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
composer require mokoconsulting-tech/enterprise
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Composer Registry
|
|
|
|
|
|
|
|
|
|
This package is served from Gitea package registry. Add this to your `composer.json`:
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"repositories": [
|
|
|
|
|
{
|
|
|
|
|
"type": "composer",
|
|
|
|
|
"url": "https://git.mokoconsulting.tech/api/packages/MokoConsulting/composer"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## CLI Tools
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Health check
|
|
|
|
|
vendor/bin/moko health -- --path .
|
|
|
|
|
|
|
|
|
|
# Sync standards
|
|
|
|
|
vendor/bin/moko sync
|
|
|
|
|
|
|
|
|
|
# Inventory
|
|
|
|
|
vendor/bin/moko inventory -- --path .
|
|
|
|
|
```
|
|
|
|
|
|
2026-04-15 02:35:30 +00:00
|
|
|
## 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`) |
|
2026-04-16 22:21:59 -05:00
|
|
|
| `GITEA_ORG` | Gitea organization (default: `MokoConsulting`) |
|
2026-04-15 02:35:30 +00:00
|
|
|
|
2026-04-13 06:12:04 +00:00
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
GPL-3.0-or-later — See [LICENSE.md](LICENSE.md)
|