定制 memran/marwa-framework 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

memran/marwa-framework

Composer 安装命令:

composer require memran/marwa-framework

包简介

MarwaPHP - A future‑proof, PSR‑compliant PHP framework core.Minimal, modular, and fast — with developer‑friendly APIs.

README 文档

README

Latest Version Total Downloads License PHP Version

A lightweight, modular PHP micro-framework built for speed, scalability, and simplicity. It adheres to PSR standards and offers rich features like routing, ORM, CLI tools, authentication, mailing, and more — making it ideal for rapid API or web application development.

🚀 Features

  • PSR-4 Autoloading & PSR-7 HTTP Message support
  • Expressive Routing System
  • MVC Pattern
  • ORM with Relationships
  • Authentication & Authorization
  • Middleware Support
  • Queue Job Handling
  • Notification System (Email/SMS)
  • Session & Cookie Management
  • Templating with Smarty
  • Built-in CLI (marwa)

📦 Requirements

  • PHP >= 8.2
  • Composer
  • MySQL or supported database
  • Optional: Redis (for cache/session/queue)

📥 Installation

git clone https://github.com/memran/marwa-framework.git
cd marwa-framework
composer install

Create .env file:

cp .env.example .env

Update your environment variables for DB, mail, etc.

🔧 Running the App

Use PHP's built-in web server:

php -S localhost:8000 -t public

🧭 Example Route

// routes/web.php

use Marwa\Framework\Facades\Route;

Route::get('/', function () {
    return 'Hello from Marwa!';
})->register();

🎮 Using the CLI

The marwa CLI allows code generation and system operations:

php marwa make:controller HomeController
php marwa make:model Product
php marwa migrate

📜 License

Licensed under the MIT License

🤝 Contributing

We welcome contributions. Feel free to fork, make a pull request, or suggest features via GitHub issues.

👤 Author

Mohammad Emran
GitHub | LinkedIn

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-06