Download the PHP package monkeyscloud/monkeyslegion-skeleton without Composer
On this page you can find all versions of the php package monkeyscloud/monkeyslegion-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download monkeyscloud/monkeyslegion-skeleton
More information about monkeyscloud/monkeyslegion-skeleton
Files in monkeyscloud/monkeyslegion-skeleton
Package monkeyslegion-skeleton
Short Description Starter project for the MonKeysLegion framework
License MIT
Homepage https://github.com/monkeyscloud/monkeyslegion-skeleton
Informations about the package monkeyslegion-skeleton
MonKeysLegion Skeleton v2.1
Production-ready PHP 8.4 skeleton for building web apps & APIs with the MonKeysLegion framework v2.1.
Built on attribute-first routing, property hooks, asymmetric visibility, and a zero-magic PSR-15 pipeline. Now with Inertia.js SSR, Vite asset pipeline, feature flags, webhooks, Markdown rendering, search indexing, and multi-channel notifications.
✨ What's New in v2.1
| Feature | v2.0 | v2.1 |
|---|---|---|
| Inertia.js | — | Full adapter with SSR support |
| Vite | — | Asset pipeline with HMR + manifest |
| Feature Flags | — | Memory/Database/Redis drivers |
| Webhooks | — | Signing, delivery, retry, multi-driver |
| Markdown | — | Pure PHP renderer with extensions |
| Search | — | Null/Database/Meilisearch engines |
| Notifications | Mail only | + Slack, Teams, Webhook channels |
| OAuth | — | Google, GitHub, GitLab, Facebook, X, Microsoft |
| HTTP Middleware | 6 | 12+ (CSP, Compression, Conditional, Correlation, Signed URLs, Deprecation) |
| Entity Casts | — | JSON, Boolean, DateTime, Decimal, Enum, Array |
| Query Builder | Basic | + whereHas, whereDoesntHave, has, doesntHave, load() |
| Database | — | Model factories, nested transactions |
| Schedule | Basic | + Health monitor (degraded/unhealthy detection) |
| Core | — | GDPR module, health checks, OPcache preload |
| Telemetry | Basic | + Prometheus exporter, OTLP/HTTP tracing |
| CLI | 15 commands | 35+ commands, React/Vue presets, TypeScript generator |
| Validation | 7 rules | + #[NotPwned] (HIBP API check) |
| Router | — | + #[ApiVersion], #[Deprecated] attributes |
| DevTools | 4 panels | + Request, Routes, Session, Timeline panels |
✨ Features Overview
| Category | Features |
|---|---|
| HTTP Stack | PSR-7/15 compliant, middleware pipeline, SAPI emitter |
| Routing | Attribute-based v2, auto-discovery, constraints, caching |
| Dependency Injection | PSR-11 container with #[Singleton], #[Provider] |
| Database | Native PDO MySQL 8.4, Query Builder, Micro-ORM, Factories |
| Authentication | JWT, RBAC, 2FA, OAuth (6 providers), API keys |
| API Documentation | Live OpenAPI 3.1 & Swagger UI |
| Validation | DTO binding with attribute constraints |
| Rate Limiting | #[Throttle] attribute, sliding-window (IP + User) |
| Templating | MLView with components, slots, caching |
| CLI | 35+ commands, React/Vue presets, TypeScript generator |
| Files | Multi-driver storage, image processing, chunked uploads |
| I18n | Full internationalization & localization support |
| Telemetry | Prometheus metrics, OTLP tracing, PSR-3 logging |
| SMTP, Markdown templates, DKIM support | |
| Caching | Multiple drivers (File, Redis, Memcached) |
| Feature Flags | Memory, Database, Redis drivers |
| Webhooks | HMAC signing, retry, delivery tracking |
| Search | Database full-text, Meilisearch integration |
| Notifications | Mail, Slack, Teams, Webhook channels |
| Markdown | Pure PHP renderer with extensions |
| Inertia.js | SSR + CSR fallback, lazy props, flash bridge |
| Vite | Asset pipeline, HMR, manifest, route exporter |
| Security | CSP, GDPR, audit log, signed URLs, SQL guard |
| Health Checks | Database, cache, disk space monitoring |
🚀 Quick Start
Frontend Setup (Inertia.js + Vite)
📁 Project Structure
🏗️ v2 Architecture
Entry Point
Entities (PHP 8.4 Property Hooks + Asymmetric Visibility + Casts)
Entity Casts (v2.1):
Services (#[Singleton] + PSR-14 Events)
Controllers (Attribute Routing + Authorization)
OAuth Social Login (v2.1)
Supported providers: Google, GitHub, GitLab, Facebook, X (Twitter), Microsoft
Inertia.js + Vite (v2.1)
Feature Flags (v2.1)
Notifications (v2.1)
Webhooks (v2.1)
Markdown (v2.1)
Search (v2.1)
⚙️ Configuration (.mlc)
All framework config uses the .mlc format with environment variable interpolation:
The only PHP config file is config/app.php — reserved exclusively for DI container bindings.
📦 Package Ecosystem
The monkeyscloud/monkeyslegion meta-package (^2.1) requires all sub-packages transitively. You only need one dependency:
Core Packages
| Package | Version | Purpose |
|---|---|---|
monkeyslegion |
2.1.2 | Meta-package — bridges skeleton to all sub-packages |
monkeyslegion-core |
2.1.0 | Kernel, Application builder, GDPR, health checks, OPcache |
monkeyslegion-di |
2.0.1 | PSR-11 DI container with #[Singleton], #[Provider] |
monkeyslegion-mlc |
2.0.0 | .mlc config parser |
monkeyslegion-contracts |
2.0.0 | Shared interfaces |
monkeyslegion-env |
2.0.0 | Environment loader |
HTTP & Routing
| Package | Version | Purpose |
|---|---|---|
monkeyslegion-http |
2.1.0 | PSR-7 messages + 12 middleware (CSP, Compression, etc.) |
monkeyslegion-router |
2.2.0 | Attribute routing, #[ApiVersion], #[Deprecated] |
monkeyslegion-session |
2.0.0 | Session management, CSRF |
monkeyslegion-validation |
2.1.0 | DTO validation, #[NotPwned] HIBP check |
Database & ORM
| Package | Version | Purpose |
|---|---|---|
monkeyslegion-database |
2.2.0 | PDO MySQL, factories, nested transactions |
monkeyslegion-query |
2.1.0 | Query builder, whereHas, load(), SQL safety |
monkeyslegion-entity |
2.1.0 | Entity mapper, casts (JSON, Enum, DateTime, etc.) |
monkeyslegion-migration |
2.0.0 | Schema diff + migration runner |
Auth & Security
| Package | Version | Purpose |
|---|---|---|
monkeyslegion-auth |
2.2.0 | JWT, RBAC, 2FA, OAuth (6 providers), API keys, audit |
monkeyslegion-permissions |
1.1.0 | Fine-grained permission system |
monkeyslegion-encryption |
1.0.1 | Encryption utilities |
Frontend
| Package | Version | Purpose |
|---|---|---|
monkeyslegion-inertia |
1.0.0 | Inertia.js adapter with SSR |
monkeyslegion-vite |
1.0.0 | Vite asset pipeline, @vite directive, route exporter |
monkeyslegion-template |
2.0.0 | MLView Blade-like template engine |
New Ecosystem Packages (v2.1)
| Package | Version | Purpose |
|---|---|---|
monkeyslegion-feature-flags |
1.0.1 | Memory/Database/Redis feature flag drivers |
monkeyslegion-webhooks |
1.0.1 | HMAC signing, retry, delivery tracking |
monkeyslegion-markdown |
1.0.1 | Pure PHP Markdown renderer |
monkeyslegion-search |
1.1.0 | Null/Database/Meilisearch search engines |
monkeyslegion-notifications |
1.1.0 | Mail/Slack/Teams/Webhook channels |
monkeyslegion-testing |
1.0.0 | HTTP testing DSL, fakes, snapshots |
Infrastructure
| Package | Version | Purpose |
|---|---|---|
monkeyslegion-cli |
2.1.0 | 35+ commands, React/Vue presets, TypeScript generator |
monkeyslegion-cache |
2.0.1 | PSR-16 cache (File, Redis, Memcached) |
monkeyslegion-queue |
2.0.0 | Background job processing |
monkeyslegion-schedule |
1.2.0 | Task scheduling + health monitor |
monkeyslegion-mail |
2.0.0 | SMTP, DKIM, queued mail |
monkeyslegion-files |
2.0.0 | Multi-driver storage, image processing |
monkeyslegion-events |
2.0.0 | PSR-14 event dispatcher |
monkeyslegion-i18n |
2.1.0 | Internationalization |
monkeyslegion-telemetry |
2.1.0 | Prometheus, OTLP tracing, structured logging |
monkeyslegion-devtools |
2.1.0 | Debug toolbar with 8 panels |
monkeyslegion-openapi |
1.1.0 | OpenAPI 3.1 + Swagger UI + versioning |
monkeyslegion-resources |
1.1.0 | JSON:API resources + TypeScript generator |
🔧 Helper Functions
🧪 Testing
Testing Toolkit (v2.1)
Available fakes: QueueFake, MailFake, EventFake — all with assertion methods.
🚀 Performance
Benchmarks (PHP 8.5, Apple Silicon)
| Operation | Ops/sec |
|---|---|
| Entity creation | 6.3M |
| DTO construction | 10.9M |
| Property hooks (email normalize) | 11.1M |
| Computed properties (displayName) | 41M |
| Enum operations | 8.7M |
| Resource serialization (50-item) | 43.8K |
| Peak memory | 4 MB |
📋 Requirements
- PHP 8.4+ — Required for property hooks and asymmetric visibility
- MySQL 8.4 — Recommended database
- Composer 2.x — Dependency management
- Node.js 18+ — For Vite + Inertia.js (optional, frontend only)
Recommended PHP Extensions
| Extension | Purpose |
|---|---|
pdo_mysql |
Database connectivity |
redis |
Caching, rate limiting, sessions, feature flags |
mbstring |
Multi-byte string handling |
gd or imagick |
Image processing |
intl |
Advanced I18n formatting |
📋 Code Standards
- PHP 8.4+ with
declare(strict_types=1)on every file - 4-space indentation, LF line endings, UTF-8
finalclasses by default- Property hooks for validation/formatting — no getters/setters
public private(set)for auto-incremented IDsfinal readonlyfor events, DTOs- PSR-14 for events, PSR-15 for middleware, PSR-7 for messages
- PHPStan Level 9 enforced
- PHPUnit 11 with attributes
🤝 Contributing
- Fork 🍴
- Create a feature branch 🌱
- Submit a PR 🚀
Happy hacking with MonKeysLegion! 🎉
📝 License
MIT License — see LICENSE for details.
Contributors
![]() Jorge Peraza |
![]() Amanar Marouane |
All versions of monkeyslegion-skeleton with dependencies
monkeyscloud/monkeyslegion Version ^2.1
laminas/laminas-diactoros Version ^3.8
monolog/monolog Version ^3.10

