Example Application
Phexium includes two example applications:
- Demo (
app/demo/) - Complete library management system showcasing all framework features - Starter (
app/starter/) - Minimal template for new projects
This section documents the demo application.
In This Section
- Overview - Demo application structure and features
- Homepage Module - Direct Mode (UseCase pattern)
- Library Module - CQRS with full CRUD operations
- Loan Module - Business rules and cross-aggregate interactions
- User Module - Authentication and RBAC integration
- Shared Module - Cross-cutting concerns (context, session, permissions)
Demo vs Starter
| Aspect | Demo | Starter |
|---|---|---|
| Purpose | Reference implementation | Starting point |
| Modules | Homepage, Library, Loan, User, Shared | Homepage only |
| Complexity | Full-featured | Minimal |
Quick Access
The demo application runs at http://localhost:8080:
- Web interface with Twig templates
- REST API endpoints (
/api/books) - Two user roles (admin, user)
- Multiple database support