memran / marwa-framework
MarwaPHP - A future‑proof, PSR‑compliant PHP framework core.Minimal, modular, and fast — with developer‑friendly APIs.
Installs: 10
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/memran/marwa-framework
Requires
- php: ^8.2
- league/container: ^5.1
- memran/marwa-db: dev-main
- memran/marwa-debugbar: dev-main
- memran/marwa-entity: dev-main
- memran/marwa-error-handler: dev-main
- memran/marwa-event: dev-main
- memran/marwa-logger: dev-main
- memran/marwa-module: dev-main
- memran/marwa-router: dev-main
- memran/marwa-support: dev-main
- memran/marwa-view: dev-main
- nesbot/carbon: ^3.10
- psr/event-dispatcher: ^1.0
- relay/relay: ^3.0
- symfony/console: ^7.3
- symfony/dotenv: ^7.3
- symfony/event-dispatcher: ^7.3
Requires (Dev)
- memran/php-testify: ^1.0
- phpstan/phpstan: ^2.1
This package is auto-updated.
Last update: 2025-11-20 08:18:46 UTC
README
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.