The PHP Engine
Built for Real Projects
A battle-tested CMS engine powering 100+ production applications. Multilingual, API-ready, and mobile-first from day one.
// Create a module entry $model = new Model('articles_1', 'add'); $model->data = [ 'title' => 'Hello<>مرحباً', 'body' => 'Content here', 'active'=> 1, ]; $model->co(); $model->process(); // Query with OO builder $db = new DB('articles_1'); $db->order = 'date_created DESC'; $db->limit = 10; $db->process(); End::json(true, 1, data: $db->data);
Everything You Need to Build
From CMS to mobile API — Legion covers it all out of the box, so you spend time building, not configuring.
Modular System
Create, install, and modify modules visually. Auto-generates DB tables, panel views, API endpoints, and validation — zero manual work.
Multilingual Core
Arabic and English are first-class citizens. RTL layouts, locale-aware dates, bilingual fields — it all just works without plugins.
Mobile-Ready API
Every module exposes a RESTful API automatically. Flutter-tested endpoints, push notifications via Firebase, and JWT-ready authentication.
Role-Based Access
Fine-grained permissions per module, per admin, per action. Star admins, super admins, and role hierarchies out of the box.
Smart Media Manager
Automatic image resizing and WebP conversion. Video support, file library, CDN-ready file delivery, and Pexels image integration.
Background Jobs
Dispatch heavy operations to a background queue. Built-in job system with retry, delay, and Grand Croner integration for centralized scheduling.
Arabic & English.
Not an Afterthought.
Legion was built from day one with Arabic-first multilingual support, RTL layouts, and the specific needs of MENA-based projects.
- Full RTL with a single setting
- Every field supports EN and AR simultaneously
- Admin panel with complete RTL support
- Timezone and locale management built in
- Arabic-optimized font loading (Cairo + Inter)
AI That Works Inside Your Panel
Every Legion site can use AI from its panel and app. No API keys to manage: calls go through Legion's own AI gateway, metered per site with daily limits.
Translation
Translate fields, panel and app text between Arabic, English and more, in the site's own tone.
Panel Assistant
Ask in plain words. It finds the right section of the panel and helps you get the task done.
Content Blocks
Describe a section and get ready-made blocks — heroes, cards, steps — right in the rich-text editor.
Voice to Text
Record a note about an event or a story and get clean written text back.
Read Documents
Take a photo of a document and its details fill the form fields for you.
Photo Moderation
Checks the photos users upload before other users get to see them.
Social Posts
Say what to post: it writes the words and captions and designs the picture.
Images & Video
Generate images and short videos from a description or a photo.
Always Moving Forward
Legion is improved all the time, in production. Here is what shipped most recently.
Studio: an add-on that plans, makes and publishes posts to Facebook, Instagram, TikTok and LinkedIn from the panel (Tools > Studio), the dashboard and the Commander app; licensed per site on legionengine.tech. URLs: Lin…
Payments: CyberSource REST refunds. PaymentProviderCybersourceREST::refund(transactionId, amount, currency, clientReference) refunds a captured payment in full or in part (PENDING or REFUNDED counts as accepted).
Panel: the sidebar search no longer opens the on-screen keyboard on tablets and phones; it auto-focuses only on devices with a mouse.
System Requirements
Legion runs on standard shared hosting. No Docker, no containers — just PHP and MySQL.
Start Building Something Amazing
Join the developers who chose Legion to power their applications. Start building in minutes.