Commit graph

3 commits

Author SHA1 Message Date
Funky Waddle ea23140a40 refactor: implement milestone 4 - architectural refinement (SRP & SOLID) 2026-02-14 17:27:20 -06:00
Funky Waddle 30f84a5023 refactor: restructure into proper directory hierarchy
- Move Config class to src/Config/Config.php
- Move exception classes to src/Exception/
- Move Router components to src/Router/
- Update test files with proper namespace references
2026-02-13 17:26:31 -06:00
Funky Waddle 29980d8bc6 feat: implement milestone 2 - basic URI matching and methods
- Implement fluent HTTP methods: get(), post(), put(), patch(), delete()
- Build URI matcher for static paths with PSR-7 ServerRequestInterface support
- Implement match() returning null for no match scenarios
- Implement matchOrFail() throwing NotFoundRouteException for missing routes
- Add path normalization (trailing slashes, leading slashes)
- Create NotFoundRouteException for global 404 handling
- Add comprehensive test coverage with 19 tests passing

All tests passing: 19 tests, 34 assertions

Closes milestone 2 from MILESTONES.md
2026-02-13 15:54:36 -06:00