Download the PHP package monkeyscloud/monkeyslegion without Composer

On this page you can find all versions of the php package monkeyscloud/monkeyslegion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package monkeyslegion

MonkeysLegion Framework

License PHP Version Version Tests PSR

MonkeysLegion is a high-performance, attribute-first PHP 8.4+ framework built for modern web applications and APIs. It leverages PHP 8.4 property hooks, strict types, and compiled DI to deliver a developer experience that rivals Laravel and Symfony โ€” with zero runtime compromise.


๐Ÿš€ What's New in v2.0


โœจ Features

Category Details
๐ŸŽฏ PSR Compliant PSR-7, PSR-11, PSR-14, PSR-15, PSR-16, PSR-17
๐Ÿ”ง Modular 26 independent, composable packages
๐Ÿ” Auth JWT, OAuth2, 2FA, API Keys, RBAC, Policies, remember-me
๐Ÿ—„๏ธ Database Connection manager, QueryBuilder, migrations, entity scanner
๐ŸŽจ Templates Custom engine with caching, layouts, and directives
๐ŸŒ Routing Attribute-based, auto-discovered, grouped, middleware-aware
โšก DI PSR-11 container with compiled cache for production
๐Ÿ“ Validation Attribute-based validation with DTO binding
๐ŸŒ I18n Multi-language with database and file loaders
๐Ÿ“ง Mail SMTP and API-based email delivery
๐Ÿ“Š Telemetry OpenTelemetry-compatible metrics, tracing, and structured logging
๐ŸŽช Events PSR-14 event dispatcher with listener auto-discovery
๐Ÿ’พ Cache Redis, file, in-memory backends (PSR-16)
๐Ÿ“จ Queue Background job processing with workers and retry
๐Ÿ“ Files Unified storage, image processing, garbage collection
๐Ÿ“š OpenAPI Auto-generated API docs from route attributes
๐Ÿค– AI/ML Apex: OpenAI provider, cost tracking, embeddings
๐Ÿ”„ CLI Attribute-discovered commands, schedule, dev-server
๐Ÿ›ก๏ธ Security OWASP headers, CORS, rate limiting, CSRF, maintenance mode

๐Ÿ“ฆ Included Packages

Package Version Description
monkeyslegion-core ^2.0 Core utilities, helpers, and base contracts
monkeyslegion-di ^2.0 PSR-11 dependency injection container
monkeyslegion-http ^2.0 PSR-7/PSR-15/PSR-17 HTTP layer and security middleware
monkeyslegion-router ^2.1 Attribute-based routing with auto-discovery
monkeyslegion-database ^2.0 Connection manager, PDO abstraction, transactions
monkeyslegion-query ^2.0 Fluent QueryBuilder with grammar compilation
monkeyslegion-entity ^2.0 Entity scanner and metadata extraction
monkeyslegion-migration ^2.0 Database migration generator and runner
monkeyslegion-auth ^2.1 JWT, session guards, password hashing, RBAC
monkeyslegion-validation ^2.0 Attribute-based validation and DTO binding
monkeyslegion-cache ^2.0 PSR-16 cache: Redis, file, in-memory stores
monkeyslegion-session ^2.0 Session manager with CSRF middleware
monkeyslegion-template ^2.0 Template engine with caching and layouts
monkeyslegion-events ^2.0 PSR-14 event dispatcher
monkeyslegion-logger ^2.0 PSR-3 logger with rotating file handlers
monkeyslegion-queue ^1.2 Queue factory, workers, and job dispatching
monkeyslegion-schedule ^1.1 Task scheduling with cron expressions
monkeyslegion-mail ^1.1 SMTP and API-based email
monkeyslegion-i18n ^2.1 Internationalization and locale management
monkeyslegion-telemetry ^2.0 Metrics, distributed tracing, request middleware
monkeyslegion-files ^2.0 File storage, image processing, garbage collection
monkeyslegion-mlc ^3.2 MLC config parser with env interpolation
monkeyslegion-cli ^2.0 CLI kernel with attribute-discovered commands
monkeyslegion-apex ^1.0 AI/ML abstraction: OpenAI, cost tracking
monkeyslegion-openapi ^1.0 Auto-generated OpenAPI v3 documentation
monkeyslegion-dev-server ^1.0 Built-in development server

๐Ÿ”จ Installation

Requirements

Quick Start

Project Structure


๐Ÿ—๏ธ Architecture

Boot Sequence

Request Lifecycle (HTTP)


๐Ÿ“š Usage Guide

Entry Point (v2.0)

public/index.php

Migration from v1: Replace HttpBootstrap::run() with Application::create()->run(). The legacy class still works but triggers a deprecation notice.

Configuration (MLC Format)

MonkeysLegion uses .mlc files โ€” a clean, typed config format with env interpolation:

config/app.mlc

config/database.mlc

config/auth.mlc

Environment cascade: .env โ†’ .env.local โ†’ .env.{APP_ENV} โ†’ .env.{APP_ENV}.local

Routing

Define routes using PHP 8 attributes with auto-discovery:

Database & Query Builder

Authentication

Auth capabilities: JWT, OAuth2 (Google, GitHub), TOTP 2FA, password reset, API keys, RBAC, policies, rate limiting, token blacklisting, remember-me.

Validation & DTO Binding

Service Providers

Create custom modular providers with attribute discovery:

Template Engine

Events (PSR-14)

AI/ML with Apex

Queue System

File Management

Internationalization

Telemetry & Observability

Maintenance Mode

CLI Commands

Custom Middleware

Register in config/middleware.mlc:


๐Ÿงช Testing

MonkeysLegion ships with a comprehensive test suite (PHPUnit 11):

Test Suite Coverage

Test Class Target Tests
CompiledContainerCacheTest DI compiled cache 14
AttributeTest Provider & BootAfter attributes 7
MaintenanceModeMiddlewareTest Maintenance mode bypass 7
ProviderScannerTest Auto-discovery scanner 4
AppConfigTest Provider aggregator & context 7
ConfigLoaderTest MLC config loading 4
ProviderDefinitionsTest All 19 service providers 90+
ApplicationTest Boot lifecycle & container 13
ExceptionHandlerTest Error handling (JSON/HTML) 10
DatabaseUserProviderTest Auth user operations 15
HttpBootstrapTest v1 deprecation 1
Total 182 tests, 440 assertions

Writing Tests


โšก Production Optimization

Compiled Container

MLC Config Compilation

The ConfigLoader automatically compiles .mlc files to PHP arrays in var/cache/config.compiled.php for production. No parsing overhead on subsequent requests.

OPcache


๐Ÿ”ง Environment Configuration

Variable Default Description
APP_ENV production Environment: production, staging, dev, testing
APP_DEBUG false Enable debug mode (error details, stack traces)
APP_URL โ€” Application base URL
APP_TIMEZONE UTC Default timezone
DB_CONNECTION mysql Database driver
DB_HOST 127.0.0.1 Database host
DB_PORT 3306 Database port
DB_DATABASE โ€” Database name
DB_USERNAME root Database user
DB_PASSWORD โ€” Database password
JWT_SECRET โ€” JWT signing key
REDIS_HOST 127.0.0.1 Redis host
REDIS_PORT 6379 Redis port

๐Ÿ“– API Reference

For detailed API documentation, visit monkeyslegion.com/docs or explore the individual package repositories on GitHub.


๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'feat: add my feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

๐Ÿ“„ License

MonkeysLegion is open-source software licensed under the MIT License.

๐Ÿ™ Credits

Created and maintained by the MonkeysCloud team.

๐Ÿ“ž Support

๐Ÿ—บ๏ธ Roadmap

โœ… Completed in v2.0

๐Ÿ”œ v2.1

๐Ÿ”ฎ v3.0


Built with โค๏ธ by MonkeysCloud


All versions of monkeyslegion with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package monkeyscloud/monkeyslegion contains the following files

Loading the files please wait ...