devgine / web
PSR-compliant PHP web engine: container, router, middleware kernel, views with a component system and a database layer – with no runtime dependencies beyond PSR interfaces. moritzschacke.de runs on it.
Details
- Role
- Author & maintainer
- Period
- 07/2026 – present
- Technologies
- PHP 8.5, PSR-3/7/11/14/15/16/17, PHPStan, PHPUnit, PSR-12
- PHPStan at level max without a baseline, tests for every public API, PSR-12 enforced by php-cs-fixer.
- Semantic versioning, conventional commits, changelog following Keep a Changelog.
- Closed source – code samples and deep dives on request.
Building blocks
-
Container
PSR-11 with autowiring, contextual bindings and a service-provider lifecycle.
-
HTTP & Middleware
PSR-7/15, onion middleware pipeline, security headers.
-
Routing
Named routes, regex-constrained parameters, attribute routes, model binding.
-
Views
PHP templates with layouts and sections; components bundle HTML/CSS/JS.
-
Database
Query builder with prepared statements, schema builder, CLI migrations.
-
Auth & Sessions
Session guard, remember-me, CSRF protection, secure cookies (HttpOnly/SameSite/Secure).
-
Further modules
Validation, PSR-16 cache, PSR-14 events, PSR-3 logging, mail, filesystem, localisation, rate limiting, pagination, CLI, testing helpers.