Download the PHP package celiovmjr/simplerouter without Composer
On this page you can find all versions of the php package celiovmjr/simplerouter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download celiovmjr/simplerouter
More information about celiovmjr/simplerouter
Files in celiovmjr/simplerouter
Package simplerouter
Short Description A lightweight, enterprise-grade PHP router with validation, middleware, and DDD principles
License MIT
Informations about the package simplerouter
๐ SimpleRouter
A lightweight, enterprise-grade PHP router with Domain-Driven Design (DDD) architecture, featuring powerful validation, middleware pipeline, and zero dependencies.
โจ Features
- ๐ฏ Clean Architecture - Domain-Driven Design (DDD) with clear separation of concerns
- โก Zero Dependencies - Pure PHP 8.2+, no external packages required
- ๐ก๏ธ Type Safety - Full type hints with strict types enabled
- ๐ Built-in Validation - 17+ validation rules with custom messages
- ๐ Middleware Pipeline - Powerful middleware system with built-in CORS, Rate Limiting, and Logging
- ๐จ Flexible Routing - RESTful routes, route groups, named routes, and multiple HTTP methods
- ๐ Smart Parameters - Type-safe route parameters (int, uuid, slug, alpha, etc.)
- ๐งช 100+ Tests - Comprehensive test suite with PHPUnit
- ๐ Rich Documentation - Complete examples and API reference
๐ฆ Installation
Or download the latest release and include via autoloader:
๐ Quick Start
Basic Route
With Validation
With Middleware
๐ Documentation
- Getting Started - Installation and first steps
- Architecture - DDD structure and design principles
- Routing Guide - Complete routing documentation
- Validation Guide - Validation rules and usage
- Middleware Guide - Built-in and custom middleware
- Testing Guide - Running and writing tests
- Examples - Code examples and demos
๐ฃ๏ธ Routing
โ Full Routing Documentation
โ Validation
17+ Built-in Rules:
required,email,url,uuidinteger,numeric,boolean,alpha,alphanumericmin,max,in,regex,date
โ Full Validation Documentation
๐ก๏ธ Middleware
Built-in Middleware
Custom Middleware
โ Full Middleware Documentation
๐ฅ๐ค Request & Response
Request
Response
โ Full Request/Response Documentation
๐งช Testing
100+ Tests covering:
- Router functionality
- Validation rules
- Request/Response handling
- Middleware pipeline
โ Full Testing Documentation
๐๏ธ Architecture
SimpleRouter follows Domain-Driven Design (DDD):
โ Full Architecture Documentation
Design Principles:
- โ SOLID principles
- โ Clean Code practices
- โ DDD architecture (Domain/Application layers)
- โ Type safety (PHP 8.2+)
- โ Zero global state
- โ Interface-based design
- โ 17 individual validation rule files
- โ 3 production-ready built-in middleware
๐ Examples
API with Database
Authentication
File Upload
โ More Examples
๐ค Contributing
Contributions welcome! Please read CONTRIBUTING.md for guidelines.
๐ License
MIT License - see LICENSE file.
๐ Acknowledgments
- Built with โค๏ธ by Celio Junior
- Inspired by Laravel and Symfony
- Architecture based on DDD principles
๐ Support
- ๐ง Email: [email protected]
- ๐ Issues: GitHub Issues
- ๐ Docs: Documentation
Made with โค๏ธ and PHP 8.2+
All versions of simplerouter with dependencies
ext-json Version *
ext-mbstring Version *