Commit graph

8 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 7152e2b3e7 feat: implement milestone 3 - comprehensive test coverage 2026-02-14 17:27:15 -06:00
Funky Waddle ab7719a39f docs: add comprehensive PHPDoc blocks to all public classes and methods
- Added class-level PHPDoc blocks to all public classes
- Added method-level PHPDoc blocks with @param and @return tags
- Documented public properties and their purposes
- Added PHPDoc for parameter types and return types
- Improved code documentation following PSR-5 standards
2026-02-13 22:04:38 -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
Funky Waddle 509716f64d feat: implement milestone 1 - foundation and core architecture
- Define Route and RouteDefinition classes with SRP focus
- Implement Router class with Inversion of Control (DI for config)
- Create Config object for handling modules_path, routes_file, and modules_glob
- Implement MissingConfigurationException
- Setup basic PHPUnit suite with comprehensive tests

All tests passing: 11 tests, 24 assertions

Closes milestone 1 from MILESTONES.md
2026-02-13 15:07:59 -06:00
Funky Waddle 2d1cc99ed5 Update project documentation and composer.json with explicit optional parameter logic and author details 2026-02-12 14:34:25 -06:00
Funky Waddle 4fde85df60 Initial repository setup with LICENSE, .gitignore, and composer.json 2026-02-12 13:36:48 -06:00