Legion Engine
Legion Engine v5.0.166 — now available

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.

croner.php
// 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);
177 Sites running Legion
5+ Years in Production
143 Releases since 2025
15 Releases in the last 30 days
Core Capabilities

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.

Designed for the Arab Web

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)
English
العربية
Title (EN) Best Organic Honey
العنوان (AR) أفضل عسل طبيعي
Status ● Active
URL (EN) /en/product/1/best-organic-honey
رابط (AR) /ar/product/1/أفضل-عسل-طبيعي
Built-in AI

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.

System Requirements

Legion runs on standard shared hosting. No Docker, no containers — just PHP and MySQL.

PHP 8.1+
MySQL 5.7+
Apache / cPanel
mod_rewrite
Ready to build?

Start Building Something Amazing

Join the developers who chose Legion to power their applications. Start building in minutes.