MonkeysLegion Framework — Power in Every Module

A feather-light core that scales like steel, giving you raw speed, clean architecture, and total control.

Underneath MonkeysLegion’s friendly DX lies a high-performance engine written for modern PHP 8+. Every layer—routing, dependency injection, event bus, and CLI—snaps together with predictable conventions and zero hidden magic. Swap any piece, extend every service, and deploy anywhere from a single Docker container to a global Kubernetes mesh. The result: production-grade muscle without the heavyweight bulk.

framework

Lightning Router

A trie-based dispatcher resolves 100k routes in µs, supports REST & GraphQL out of the box.

Smart DI Container

Compile-time wiring, autoloaded services, and scoped lifecycles keep boot times tiny and testing trivial.

Universal Middleware

PSR-15 pipeline that layers auth, caching, rate-limits, and observability with a single line of config.

Framework

Quick-Start Navigation

Jump straight to the section you need:

  1. [Philosophy & Design Goals] — Why we built MonkeysLegion and the principles that keep it lean.

  2. [Getting Started] — Installation, first project scaffold, and “Hello World” in 5 minutes.

  3. [Core Components] — Router · DI Container · Event Bus · Middleware · CLI.

Core Highlights

Component

What It Solves

Why It Matters

Lightning Router

Ultra-fast URL dispatch with REST & GraphQL auto-binding.

100 k routes in microseconds → no routing bottlenecks under load.

Smart DI Container

Compile-time service wiring, scoped lifecycles, zero reflection.

Cold-boot in <40 ms, effortless unit-testing, clear boundaries.

Universal Middleware

PSR-15 pipeline for auth, caching, rate-limits, tracing.

Add cross-cutting concerns with a one-line config; keep code pure.

Why Developers Love It

  • Feather-Light Core – 9 MB RSS after full bootstrap.

  • Zero Hidden Magic – Explicit configuration beats unpredictable conventions.

  • Cloud-Native DNA – Docker-first images and K8s manifests out-of-the-box.

  • Swap-Anything Architecture – Replace ORM, templating, or even the router without forking.

Try It in 90 Seconds

# 1 — Install skeleton
composer create-project "monkeyscloud/monkeyslegion-skeleton"
 
# 2 — Run locally
cd my-service
composer serve

Next Steps

Production-grade muscle without the heavyweight bulk—welcome to MonkeysLegion.