PHPackages                             monkeyscloud/monkeyslegion - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. monkeyscloud/monkeyslegion

ActiveLibrary

monkeyscloud/monkeyslegion
==========================

Meta-package for the full MonkeysLegion stack

1.0.20(2mo ago)11.4k↑250%[1 PRs](https://github.com/MonkeysCloud/MonkeysLegion/pulls)1MITPHP

Since Jul 23Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/MonkeysCloud/MonkeysLegion)[ Packagist](https://packagist.org/packages/monkeyscloud/monkeyslegion)[ RSS](/packages/monkeyscloud-monkeyslegion/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (51)Versions (30)Used By (1)

MonkeysLegion Framework
=======================

[](#monkeyslegion-framework)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![PHP Version](https://camo.githubusercontent.com/504ead6a583c68d8d62d7bfceed24e569ca613d7a36bed380281b3455b5c7b31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e342d626c7565)](https://camo.githubusercontent.com/504ead6a583c68d8d62d7bfceed24e569ca613d7a36bed380281b3455b5c7b31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e342d626c7565)[![Version](https://camo.githubusercontent.com/fafd3974d3c592e6dedaa1a30324a3dc772a75e43a747b81caf98d3c43c5b966/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302d677265656e)](https://camo.githubusercontent.com/fafd3974d3c592e6dedaa1a30324a3dc772a75e43a747b81caf98d3c43c5b966/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302d677265656e)

**MonkeysLegion** is a modern, modular PHP framework designed for building high-performance web applications and APIs. It follows PSR standards and provides a comprehensive suite of integrated packages for rapid application development.

🚀 Features
----------

[](#-features)

- **🎯 PSR Compliant** - Fully compliant with PSR-7, PSR-11, PSR-14, PSR-15, PSR-16, PSR-17
- **🔧 Modular Architecture** - Use only what you need with independent, composable packages
- **🔐 Comprehensive Authentication** - JWT, OAuth2, 2FA, API Keys, RBAC, and Policies
- **🗄️ Database Layer** - Query Builder, Migrations, Entity Scanner, and Repository Pattern
- **🎨 Template Engine** - Powerful, custom template engine with caching
- **🌐 Advanced Routing** - Attribute-based routing with middleware support and auto-discovery
- **⚡ Dependency Injection** - Fast, PSR-11 compliant DI container
- **📝 Validation** - Attribute-based validation with DTO binding
- **🌍 Internationalization** - Multi-language support with database and file loaders
- **📧 Email Service** - SMTP and API-based email delivery
- **📊 Telemetry &amp; Monitoring** - Metrics, Distributed Tracing and structured logging
- **🎪 Event System** - PSR-14 event dispatcher for decoupled architecture
- **💾 Caching** - Multiple cache backends (Redis, File, In-Memory)
- **📨 Queue System** - Robust background job processing with workers
- **📁 File Management** - Unified file storage and image processing
- **📚 OpenAPI** - Auto-generated API documentation
- **🔄 CLI Tools** - Powerful command-line interface for development tasks

📦 Included Packages
-------------------

[](#-included-packages)

MonkeysLegion is a meta-package that bundles the following modular components:

PackageDescription`monkeyslegion-core`Core framework components and utilities`monkeyslegion-http`PSR-7/PSR-15 HTTP layer and middleware`monkeyslegion-router`Advanced routing with attribute support`monkeyslegion-di`Dependency injection container`monkeyslegion-database`Database abstraction and connections`monkeyslegion-query`Query builder and ORM features`monkeyslegion-entity`Entity scanner and metadata extraction`monkeyslegion-migration`Database migration system`monkeyslegion-auth`Complete authentication &amp; authorization`monkeyslegion-template`Custom template engine`monkeyslegion-mlc`Configuration file parser (.mlc format)`monkeyslegion-validation`Attribute-based validation`monkeyslegion-i18n`Internationalization and localization`monkeyslegion-events`PSR-14 event dispatcher`monkeyslegion-logger`Logging abstraction built on Monolog`monkeyslegion-mail`Email sending capabilities`monkeyslegion-cache`Cache abstraction layer`monkeyslegion-files`File operations and storage`monkeyslegion-queue`Queue worker and job dispatching`monkeyslegion-cli`Command-line interface kernel`monkeyslegion-telemetry`Application metrics and tracing`monkeyslegion-dev-server`Development server for rapid prototyping🔨 Installation
--------------

[](#-installation)

### Requirements

[](#requirements)

- PHP 8.4 or higher
- Composer 2.x
- MySQL/MariaDB (or any PDO-supported database)
- Redis (optional, for caching, queues, and rate limiting)

### Quick Start

[](#quick-start)

```
# Install via Composer
composer require monkeyscloud/monkeyslegion

# Create project structure
mkdir my-app && cd my-app
mkdir -p {app/Controller,app/Entity,config,public,resources/views,var/{cache,log}}

# Create public/index.php
cat > public/index.php
