PHPackages                             elyerr/elymod - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. elyerr/elymod

ActiveProject[Utility &amp; Helpers](/categories/utility)

elyerr/elymod
=============

Scaffold a new Elymod module for development.

v3.0.4(3w ago)0941MITPHP

Since Dec 27Pushed 3w agoCompare

[ Source](https://github.com/elyerrlabs/elymod)[ Packagist](https://packagist.org/packages/elyerr/elymod)[ RSS](/packages/elyerr-elymod/feed)WikiDiscussions dev Synced 1w ago

READMEChangelog (3)DependenciesVersions (25)Used By (0)

Elymod
======

[](#elymod)

**Elymod** is the official **module installer and generator** for the OAuth2 Passport Server modular ecosystem.

It is not the runtime itself — it is the **entry point for creating and scaffolding modules**.

Elymod works together with:

- **elymod-app** → Module skeleton (base structure for every module)
- **elyscope** → Composer + PHP-Scoper bridge/wrapper for dependency isolation
- **elyerr/laravel-runtime** → Lightweight Laravel-like runtime
- **OAuth2 Passport Server v8** → Core platform (host system)

Together, these components form a **modular mini-framework ecosystem** designed for scalable enterprise extensions.

---

Architecture Overview
=====================

[](#architecture-overview)

Elymod is the **installer + generator layer** of the ecosystem.

When a module is created:

1. Elymod generates the module using **elymod-app (skeleton)**
2. Dependencies are installed and resolved via **Composer**
3. **elyscope** processes dependencies:
    - wraps Composer resolution
    - applies PHP-Scoper transformations
    - rewrites namespaces into isolated module scope
4. The module runs on top of **elyerr/laravel-runtime**
5. OAuth2 Passport Server v8 registers the module

This produces a fully isolated module with its own namespace:

```
ModuleName\Vendor\Package

```

No collisions. No shared vendor pollution. Fully encapsulated execution.

---

What Elymod Solves
==================

[](#what-elymod-solves)

Traditional modular systems in large PHP/Laravel ecosystems suffer from:

- ❌ Dependency collisions between modules
- ❌ Shared vendor pollution
- ❌ Tight coupling to the host application
- ❌ Hard upgrades and maintenance
- ❌ No real isolation between teams/modules
- ❌ Fragile plugin architectures

Elymod solves this by introducing a **fully isolated modular pipeline**.

---

Ecosystem Components
====================

[](#ecosystem-components)

🔧 Elymod (Installer &amp; Generator)
------------------------------------

[](#-elymod-installer--generator)

Responsible for:

- Creating modules
- Bootstrapping module structure
- Orchestrating dependency pipeline
- Connecting all ecosystem tools
- Registering modules into OAuth2 Passport Server v8

---

📦 elymod-app (Skeleton)
-----------------------

[](#-elymod-app-skeleton)

A standardized module blueprint that includes:

- Laravel-like structure (lightweight)
- Prebuilt service container setup
- Routing, config, and lifecycle structure
- OAuth2 Passport Server integration layer
- Ready-to-run module foundation

Every module starts from this skeleton.

---

🧠 elyscope (Composer + PHP-Scoper Bridge)
-----------------------------------------

[](#-elyscope-composer--php-scoper-bridge)

**elyscope is not just PHP-Scoper.**

It is a **hybrid orchestration layer** between Composer and PHP-Scoper.

It is responsible for:

- Intercepting Composer dependency resolution
- Installing dependencies per module scope
- Running PHP-Scoper transformations
- Rewriting namespaces into isolated module space
- Ensuring dependency graph isolation per module

Example transformation:

```
Original:
Vendor\Package\Class

Scoped:
ModuleName\Vendor\Package\Class

```

It acts as a **bridge between dependency management and isolation engine**, ensuring both worlds work together.

---

⚙️ Laravel Runtime (Execution Layer)
------------------------------------

[](#️-laravel-runtime-execution-layer)

**elyerr/laravel-runtime** provides a lightweight Laravel-like environment:

- Routing system
- Controllers lifecycle
- Middleware pipeline
- Service container abstraction
- Views rendering
- Policy execution

It allows modules to behave like Laravel apps without requiring full Laravel.

---

🧩 OAuth2 Passport Server v8 (Host System)
-----------------------------------------

[](#-oauth2-passport-server-v8-host-system)

The core platform responsible for:

- Authentication (OAuth2)
- Authorization
- Module registry
- Module lifecycle management
- System security and integrity

---

Module Flow (How it works)
==========================

[](#module-flow-how-it-works)

When a module is created:

```
php artisan module:make BlogModule
```

The system executes:

1. Elymod generates structure using **elymod-app**
2. Composer installs dependencies
3. **elyscope** wraps Composer + applies PHP-Scoper isolation
4. Module is fully namespaced and sandboxed
5. Laravel runtime initializes execution layer
6. OAuth2 Passport Server registers module

---

Module Structure Output
=======================

[](#module-structure-output)

Each module is fully isolated:

```
BlogModule/
├── app
├── artisan
├── bootstrap
├── composer.json
├── composer.lock
├── config
├── database
├── lang
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
├── resources
├── routes
│   ├── admin.php
│   ├── api.php
│   ├── console.php
│   ├── public.php
│   └── web.php
├── scoper.inc.php
├── storage
│   └── logs
├── temp
├── tests
│   ├── Feature
│   │   └── ExampleTest.php
│   ├── TestCase.php
│   └── Unit
│       └── ExampleTest.php
└── vite.config.js

```

All dependencies are rewritten into module scope:

```
BlogModule\Vendor\Package

```

No global dependency leakage.

---

Key Benefits
============

[](#key-benefits)

### 🧩 True modular architecture

[](#-true-modular-architecture)

Modules behave like independent applications.

### 🔐 Full dependency isolation

[](#-full-dependency-isolation)

Each module has its own scoped dependency tree.

### ⚙️ Hybrid dependency system

[](#️-hybrid-dependency-system)

Composer + PHP-Scoper combined via elyscope bridge.

### ⚡ Lightweight execution layer

[](#-lightweight-execution-layer)

Runs on laravel-runtime instead of full Laravel stack.

### 📦 Portable modules

[](#-portable-modules)

Modules can be moved between environments safely.

### 🏗️ Enterprise scalability

[](#️-enterprise-scalability)

Designed for large organizations and multi-team systems.

### 🔁 Plug-and-play lifecycle

[](#-plug-and-play-lifecycle)

Install, enable, disable, remove without breaking the system.

---

Why this ecosystem exists
=========================

[](#why-this-ecosystem-exists)

As systems built on OAuth2 Passport Server grow, they face:

- Feature sprawl across teams
- Dependency conflicts
- Tight coupling between modules
- Difficult upgrade cycles
- Lack of isolation boundaries

This ecosystem solves it by introducing:

> A fully isolated modular architecture where dependency management and scoping are unified through elyscope.

---

Development Philosophy
======================

[](#development-philosophy)

> The core system owns identity and security.
> Modules own everything else.

This ensures:

- Stable authentication layer
- Independent feature evolution
- Safe scaling across organizations
- Zero coupling between teams

---

License
=======

[](#license)

MIT License.

Modules generated by Elymod may define their own licensing terms.

---

Ecosystem Summary
=================

[](#ecosystem-summary)

- OAuth2 Passport Server v8 → Core platform
- Elymod → Installer &amp; module generator
- elymod-app → Module skeleton
- elyscope → Composer + PHP-Scoper bridge
- laravel-runtime → Lightweight execution layer

---

Elymod is not just a generator.

It is the entry point to a **fully isolated modular ecosystem** designed for enterprise-scale systems built on OAuth2 Passport Server v8.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

23

Last Release

25d ago

Major Versions

v1.1.2 → v2.0.02026-06-12

v2.0.0 → v3.0.02026-06-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/966b515d3fb063763019b1950c8c9b4891373924e10f6867420525a726e08217?d=identicon)[elyerr](/maintainers/elyerr)

---

Top Contributors

[![elyerr](https://avatars.githubusercontent.com/u/94133542?v=4)](https://github.com/elyerr "elyerr (68 commits)")

---

Tags

laravelmini-frameworkmodulemodulesoauth2-passport-serveropen-source

### Embed Badge

![Health badge](/badges/elyerr-elymod/health.svg)

```
[![Health](https://phpackages.com/badges/elyerr-elymod/health.svg)](https://phpackages.com/packages/elyerr-elymod)
```

###  Alternatives

[sulu/automation-bundle

The Sulu Bundle which provides automation functionality

18307.3k13](/packages/sulu-automation-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
