memran/marwa-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

memran/marwa-module

Composer 安装命令:

composer require memran/marwa-module

包简介

Framework-agnostic, PSR-11 friendly module management library for PHP apps (Marwa ecosystem compatible).

README 文档

README

PHP Version Downloads License

A framework-agnostic, PSR-11–friendly module management library for PHP.

It enables modular application architecture — each module is self-contained with its own manifest.php, routes, views, models, and service provider.
marwa-module discovers and bootstraps them automatically.

✨ Features

  • 📁 Filesystem and Composer-based module discovery
  • 🚀 One entry point (ModulesServiceProvider)
  • 🧱 ModuleBuilder for clean module introspection
  • 🧾 PHP or JSON manifest format
  • ⚡ Static in-memory caching for instant reloads
  • 💤 Lazy loading of routes, events, and commands
  • 🔌 Framework-agnostic, PSR-11 compatible
  • 🧪 Unit tested with PHPUnit

Directory structure

project-root/
  src/
  vendor/
  modules/
    User/
      manifest.php
      src/
        Controllers/
        Models/
        Views/
        Commands/
        Events/
        Migrations/
        Entity/
      routes/
        http.php
    Billing/
      manifest.json

Installing

composer require memran/marwa-module

Requirements

  • PHP 8.1+
  • PSR-11 container (or adapter that implements it)
  • Filesystem access to /modules

License

MIT

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-01