Welcome to the official documentation for the Marwa Framework.
If you want a complete starter application built on top of this framework, use memran/marwa-php.
New to Marwa? Start here:
| Guide | Description | Time |
|---|---|---|
| Getting Started | Overview of getting started | 1 min |
| Installation | Install and configure | 5 min |
| Quick Start | Build your first app | 5 min |
| Project Structure | Directory layout | 3 min |
| Configuration | App configuration | 3 min |
| Starter Kits | Quick project setup | 2 min |
Starter application:
memran/marwa-php - Recommended full application starter for Marwa FrameworkStep-by-step guides for common tasks:
| Tutorial | Description |
|---|---|
| Controllers | Handle HTTP requests |
| Validation | Validate user input |
| Views | Twig templates |
| Models | Database models |
| Database | DB management |
| Modules | Modular runtime, manifests, and module menus |
| Seeding | Seed database |
| Security | Security features |
| Events | Event handling |
| Send emails | |
| Notifications | Notifications |
| HTTP Client | HTTP requests |
| DebugBar | Debug toolbar |
Core concepts and features:
| Guide | Description |
|---|---|
| Routing | Define application routes |
| Middleware | HTTP middleware |
| Requests | Handle incoming requests |
| Responses | Build HTTP responses |
| CSRF Protection | CSRF token handling |
| Session | Session management |
| Logging | Application logging |
| URL Generation | Generate URLs |
CLI commands and development:
| Guide | Description |
|---|---|
| Console Overview | Console commands |
| Database Commands | DB management commands |
| Custom Commands | Create commands |
Complete API documentation:
| Reference | Description |
|---|---|
| Reference Index | API overview |
| Application | Application class |
| Configuration | Config reference |
| Facades | Facade reference |
| Helpers | Helper functions |
| Controllers | Controller reference |
| Middleware | Middleware reference |
| Events | Event reference |
How the framework works:
| Guide | Description |
|---|---|
| Architecture | Design overview |
| Boot Flow | Bootstrap flow |
| Design Principles | Design decisions |
| Service Container | DI container |
| Service Providers | Service providers |
Security features and best practices:
| Guide | Description |
|---|---|
| Authentication | User authentication |
| Authorization | Access control |
| Security Best Practices | Security checklist |
Practical guides for common tasks:
| Recipe | Description |
|---|---|
| Recipes Index | All recipes |
| Troubleshooting | Common issues |
| Deployment | Production deployment |
| Testing | Writing tests |
Notes for contributors:
| Guide | Description |
|---|---|
| Console Development | CLI development |
| AI Coding Guide | AI-assisted coding |
composer require memran/marwa-framework
cp .env.example .env
php -S localhost:8000 -t public
php marwa
composer test
composer stan
Current version: See composer.json
Contributions welcome! See GitHub.