An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# ๐Ÿš€ MarwaPHP Framework

![License](https://img.shields.io/badge/license-MIT-blue.svg)
![PHP](https://img.shields.io/badge/php-8.2%2B-orange)
![Build](https://img.shields.io/badge/build-passing-brightgreen)

**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)