mokoconsulting-tech/enterprise (04.05.00)
Installation
{
"repositories": [{
"type": "composer",
"url": " "
}
]
}composer require mokoconsulting-tech/enterprise:04.05.00About this package
MokoStandards
⚠️ Important: This repository defines organizational policies and standards. Do not clone or duplicate this repository to create new projects. Use our repository templates instead.
Overview
MokoStandards is the authoritative source of coding standards, architectural patterns, workflow templates, governance policies, and automation tools for the Moko Consulting ecosystem. It serves as Tier 2 (Public SOURCE OF TRUTH) in our two-tier architecture.
This repository is a 100% PHP-only system built on PHP 8.1+ with PSR standards, providing:
- 284 Documentation Files — Comprehensive guides, policies, and references
- 6-Tier Enforcement System — Graduated file enforcement (OPTIONAL → SUGGESTED → REQUIRED → FORCED → NOT_SUGGESTED → NOT_ALLOWED)
- 29 Workflow Files — Standards compliance, security scanning, and reusable workflow library
- 88 Policy Documents — Coding standards, security policies, and best practices
- 38 PHP Enterprise Library Classes — Validation, automation, operations, and plugin system
- 109 CLI Scripts — Repository management, validation, fixes, and deployment
- Templates — Project templates for creating standards-compliant repositories
- Training Program — 17.5 hours across 7 comprehensive sessions
- Visual Documentation — 6 Mermaid diagram files embedded across the documentation
Quick Reference
Six-Tier Enforcement System
MokoStandards uses a graduated six-tier enforcement system for file synchronization:
Processing Priority: NOT_ALLOWED → FORCED → REQUIRED → SUGGESTED → NOT_SUGGESTED → OPTIONAL
📖 Complete Guide: docs/enforcement-levels.md — 45KB comprehensive reference with examples, decision trees, and troubleshooting
Key Capabilities
| Category | Description | Location |
|---|---|---|
| Enforcement System | 6-tier graduated file enforcement system | docs/enforcement-levels.md |
| Standards & Policies | 88 policy documents + 284 total documentation files | docs/policy/ |
| Validation Checks | 29 workflow files (compliance, security, CodeQL) | .github/workflows/ |
| PHP Enterprise Libraries | 38 classes — validation, automation, operations, plugins | api/lib/Enterprise/ |
| CLI Scripts | 109 PHP scripts for validation, fixing, deployment, sync | api/ |
| Training Program | 17.5 hours across 7 structured sessions | docs/training/ |
| Templates | Project templates and configurations | templates/ |
| Workflows | Reusable GitHub Actions workflows | .github/workflows/ |
| Visual Docs | 6 Mermaid diagram files | docs/visual/ |
| Repository Definitions | .tf-format repository structure definitions |
api/definitions/ |
Repository Structure
MokoStandards/
├── api/ # All PHP automation and validation scripts (109 files)
│ ├── automation/ # Bulk sync and automation (bulk_sync.php)
│ ├── definitions/ # Repository structure definitions (.tf files)
│ ├── deploy/ # SFTP deployment (deploy-sftp.php via phpseclib3)
│ ├── fix/ # Automated fix scripts (line endings, tabs, permissions)
│ ├── lib/ # Shared PHP libraries
│ │ └── Enterprise/ # 38 PHP Enterprise library classes + 10 plugins
│ ├── maintenance/ # Repository housekeeping scripts
│ ├── tests/ # PHPUnit test suite
│ ├── validate/ # 16 validation scripts
│ └── wrappers/ # 33 CLI wrapper scripts
├── docs/ # Documentation (284 files)
│ ├── enforcement-levels.md # 45KB comprehensive 6-tier enforcement guide
│ ├── adr/ # Architecture Decision Records
│ ├── automation/ # Automation system documentation
│ ├── checklist/ # Deployment, release, and repository setup checklists
│ ├── deployment/ # SFTP deployment guide
│ ├── development/ # Developer guides
│ ├── glossary/ # Technical terminology
│ ├── guide/ # Step-by-step implementation guides
│ ├── policy/ # 88 governance and standards policy documents
│ ├── reference/ # Technical references and inventories
│ ├── training/ # 7 sessions (study guides, slides, assessments)
│ │ ├── session-1/ # Standards Foundation
│ │ ├── session-2/ # Enterprise Libraries
│ │ ├── session-3/ # Security & Compliance
│ │ ├── session-4/ # Workflow Automation
│ │ ├── session-5/ # WaaS & CRM Development
│ │ ├── session-6/ # Operations & Monitoring
│ │ └── session-7/ # Terraform & Infrastructure
│ └── visual/ # 6 Mermaid diagram files
├── scripts/ # Runtime directories (gitignored: sftp-config/, keys/)
├── templates/ # Files synced to governed repositories
└── .github/
└── workflows/ # 29 GitHub Actions workflow files
Documentation
📚 Full catalog: docs/index.md · Organization: mokoconsulting-tech
Getting Started:
- Contributing Guide — How to contribute to MokoStandards
- Code of Conduct — Community guidelines
- Security Policy — Security and vulnerability reporting
- Quickstart Guide — Repository startup checklist
📋 Policies (docs/policy/)
Standards, requirements, and compliance rules for all governed repositories.
| Area | Key Documents |
|---|---|
| Governance | GOVERNANCE.md · Incident Management · Release Management |
| SLA & Support | Service Level Agreement · Support Guide |
| Coding Standards | Coding Style Guide · File Header Standards · Scripting Standards |
| Change & Version | Change Management · Branching Strategy · Merge Strategy · Changelog Standards |
| Security | Security Scanning · Data Classification · [Encrypt |
Dependencies
Dependencies
| ID | Version |
|---|---|
| ext-curl | * |
| ext-json | * |
| guzzlehttp/guzzle | ^7.8 |
| monolog/monolog | ^3.5 |
| php | >=8.1 |
| phpseclib/phpseclib | ^3.0 |
| psr/cache | ^3.0 |
| psr/http-client | ^1.0 |
| psr/log | ^3.0 |
| symfony/cache | ^6.4 |
| symfony/console | ^6.4 |
| symfony/filesystem | ^6.4 |
| symfony/finder | ^6.4 |
| symfony/http-foundation | ^6.4 |
| symfony/process | ^6.4 |
| symfony/routing | ^6.4 |
| symfony/yaml | ^6.4 |
| twig/twig | ^3.8 |
| vlucas/phpdotenv | ^5.6 |
Development Dependencies
| ID | Version |
|---|---|
| phpmd/phpmd | ^2.14 |
| phpstan/phpstan | ^1.10 || ^2.0 |
| phpunit/phpunit | ^10.5 |
| squizlabs/php_codesniffer | ^3.8 || ^4.0 |
| vimeo/psalm | ^5.20 |
