Docs

Guides

Welcome to the Guides Hub—a curated collection of hands-on articles that take you from “hello world” to production-grade mastery of MonkeysLegion.

Think of the Guides section as the opinionated, practical companion to the API-heavy reference docs.

Guide

What you’ll learn

Perfect when…

REST & GraphQL APIs

Attribute-based controllers, OpenAPI export, GraphQL schema builder, auth guards, versioning strategies.

You’re exposing data to SPA / mobile clients and want the pros & cons of each style.

Theming

How MLView’s Loader → Parser → Compiler → Renderer pipeline works, building layout & components, Tailwind/Vite hot reload, dark mode, config-driven branding.

You need to re-skin or white-label the UI without touching backend code.

Testing & QA

PHPUnit/Pest setup, DI container bootstrap, HTTP & DB test tricks, Playwright visual diffs, Psalm + PHPCS gates, CI workflow.

You want high confidence releases and green checks before every merge.

Contributing Guide

Branch naming, commit style, coding standards, test coverage targets, how to open a PR, release workflow.

You’re ready to fix a bug, add a feature, or improve the docs.

Tip:

Follow them in order—API → Theming → Testing → Contributing—for a smooth ramp-up, or jump straight to the guide that matches today’s problem.

Quick links

How to use these guides

  1. Clone the code snippets—every example is production-ready.

  2. Run the tests—most guides include PHPUnit or Playwright samples.

  3. Tweak & repeat—modify variables, color tokens, env flags to match your project.

  4. Give back—found a typo or optimisation? See the Contributing guide and open a quick PR.

Happy learning—and welcome to the Legion! 🐒🚀