https://github.com/memran/marwa-php
A fast, lightweight PHP framework for modern web development โ modular, MVC-based, and ideal for building scalable APIs and applications.
https://github.com/memran/marwa-php
lightweight marwaphp microframework modular mvc php-framework rest-api web-development
Last synced: 5 days ago
JSON representation
A fast, lightweight PHP framework for modern web development โ modular, MVC-based, and ideal for building scalable APIs and applications.
- Host: GitHub
- URL: https://github.com/memran/marwa-php
- Owner: memran
- License: mit
- Created: 2023-04-26T16:41:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-06T15:21:56.000Z (3 months ago)
- Last Synced: 2025-12-14T21:57:09.155Z (3 months ago)
- Topics: lightweight, marwaphp, microframework, modular, mvc, php-framework, rest-api, web-development
- Language: PHP
- Homepage: https://github.com/memran/marwa-php
- Size: 207 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Contributing: CONTRIBUTING.MD
- License: LICENSE
Awesome Lists containing this project
README
# ๐ MarwaPHP Framework



**MarwaPHP** is a fast, lightweight, and modular PHP framework built for modern web development. It simplifies API and application development with expressive routing, powerful CLI tools, and a clean MVC structure โ all while staying minimal and extensible.
---
## ๐ฆ Features
- โ
Lightweight MVC structure
- ๐ง CLI tools for rapid scaffolding
- ๐ Schema Builder, Migrations, and Seeders
- ๐ JWT Authentication & Middleware
- ๐ Built-in CORS support
- ๐
Task Scheduling & Queues
- ๐งฐ Helper functions & Utilities
- ๐ณ Docker-ready for scalable deployment
---
## ๐ Project Structure
```
marwa-php/
โโโ app/ โ Application Code (Controllers, Models, Views)
โโโ config/ โ Configuration files
โโโ public/ โ Web root (index.php)
โโโ routes/ โ Route definitions
โโโ resources/ โ Views & Assets
โโโ database/ โ Migrations, Seeders
โโโ tests/ โ Unit & Feature tests
โโโ vendor/ โ Composer packages
```
---
## ๐ Getting Started
```bash
# Clone the repo
git clone https://github.com/memran/marwa-php.git
# Enter project directory
cd marwa-php
# Install dependencies
composer install
# Run dev server
php -S localhost:8000 -t public/
```
---
## ๐ Documentation
Visit the [MarwaPHP GitHub Wiki](https://github.com/memran/marwa-php/wiki) to get started and learn all features:
- [Getting Started](https://github.com/memran/marwa-php/wiki/Getting-Started)
- [Routing](https://github.com/memran/marwa-php/wiki/Routing)
- [Controllers](https://github.com/memran/marwa-php/wiki/Controller)
- [Models](https://github.com/memran/marwa-php/wiki/Model)
- [Views (Twig)](https://github.com/memran/marwa-php/wiki/Twig)
- [Authentication](https://github.com/memran/marwa-php/wiki/Authentication)
- [Authorization (Roles & Policies)](https://github.com/memran/marwa-php/wiki/Authorization)
- [Session Management](https://github.com/memran/marwa-php/wiki/Session)
- [Queue System](https://github.com/memran/marwa-php/wiki/Queue)
- [Task Scheduling](https://github.com/memran/marwa-php/wiki/TaskSchedule)
- [Docker Setup](https://github.com/memran/marwa-php/wiki/Docker-Tutorial)
---
## ๐ป Examples
- ๐ฆ Build a RESTful API in minutes
- ๐ Secure routes with policies
- ๐ง Schedule background tasks
- ๐ Queue jobs with Redis
- ๐งช Run PHPUnit tests
---
## ๐ค Contributing
We welcome contributions! Open an issue, submit a PR, or improve documentation.
---
## ๐ License
MIT ยฉ [Mohammad Emran](https://github.com/memran)