MagratheaPHP2 Documentation
A full PHP framework for building APIs, web applications, and admin panels — ORM, fluent query builder, JWT-secured REST framework, and a pluggable admin panel. This reference is generated live from the source via reflection, so method signatures never drift out of date.
Search classes, methods, guides…
Ctrl K
Getting Started
1 topic
Core
5 topics
Database Layer
4 topics
API Framework
3 topics
Admin Panel
3 topics
Utilities
5 topics
Error Handling
1 topic
Advanced
2 topics
All Classes
Full reflected index of every class under src/
Examples
Copy-pasteable code samples for the most-used features
MD Files
View or download skill.md and instructions.md
Quick start
Drop this in your project's public entry point:
<?php
die; // remove this line once configuration below is correct for your environment
require "../vendor/autoload.php";
Magrathea2\MagratheaPHP::Instance()
->AppPath(realpath(dirname(__FILE__)))
->Dev()
->Load();
Magrathea2\Bootstrap\Start::Instance()->Load();
See the Getting Started guide for the full walkthrough, or grab skill.md to hand this framework's conventions to an AI assistant.