elyerr / laravel-runtime
A minimal Laravel runtime bridge exposing essential features for modular applications
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/elyerr/laravel-runtime
Requires (Dev)
- laravel/framework: ^12.42
README
Laravel Runtime is a lightweight bridge library built on top of the Laravel framework. It is designed to help you create modular applications or mini-frameworks that rely on Laravel only where it adds real value.
Instead of extending or forking Laravel, this library constrains it.
π― Purpose
Laravel Runtime exists to support custom runtimes and mini-frameworks that:
- Use Laravel as a dependency
- Do not require the full Laravel feature set
- Need a clean, controlled Artisan environment
- Want to stay upgrade-safe over time
A real-world example is Elymod, a modular mini-framework built on top of Laravel Runtime. Elymod uses familiar Laravel make:* commands while enforcing a reduced and predictable runtime.
β¨ Core Features
-
Selective Artisan Commands Only explicitly allowed commands are exposed (for example,
make:*). -
Custom Runtime Bootstrap Overrides Laravelβs Application and Console Kernel to control initialization.
-
Command Map Filtering Internally filters Laravelβs command registry without modifying vendor files.
-
Upgrade-Safe by Design No forks, no vendor hacks, no fragile overrides.
-
Framework-Oriented Ideal for building modular systems, internal platforms, or opinionated runtimes.
π¦ Installation
composer require elyerr/laravel-runtime
Laravel Runtime is meant to be embedded, not used as a standalone framework.
π Architecture
project
βββ laravel-runtime
βββ composer.json
βββ README.md
βββ src
βββ App
β βββ Application.php
β βββ ApplicationBuilder.php
βββ Console
βββ Application.php
βββ Kernel.php
application (elymod)
β laravel-runtime
β laravel/framework
π§ Design Philosophy
Laravel Runtime is not a Laravel replacement.
It is a control layer that allows you to:
- Expose only what your system needs
- Keep developer ergonomics familiar
- Prevent framework sprawl in modular applications
- Build long-lived architectures on top of Laravel
π§ͺ Compatibility
- Laravel 12.x
- PHP 8.2+
π License
π€ Author
Elvis Yerel Roman Concha Framework & Runtime Architecture