Skip to content

Add modular monolith module support - #7

Merged
rtcoder merged 1 commit into
masterfrom
release/v0.8.0
Jun 16, 2026
Merged

Add modular monolith module support#7
rtcoder merged 1 commit into
masterfrom
release/v0.8.0

Conversation

@rtcoder

@rtcoder rtcoder commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • add module contracts and a ModuleLoader for modular monolith applications
  • load module services and routes during HTTP boot
  • load module CLI command mappings in shift.php commands
  • update route:list to include module routes only
  • add Modules\ namespace autoloading
  • add an example Health module with controller, service, route, and command
  • remove legacy application/controller and application/routes.php entry points
  • add tests for module discovery, service registration, route registration, module controller dispatch, and attribute routing via test fixtures
  • document the module structure and registration flow

Validation

  • composer dump-autoload
  • find Engine application tests -name '*.php' -print0 | xargs -0 -n1 php -l
  • composer test
  • php shift.php route:list
  • php shift.php health
  • HTTP smoke tests:
    • GET /health -> 200 application/json
    • GET /hello -> 404 application/json

Release

  • Version label added: v0.8.0

@rtcoder rtcoder added the v0.8.0 Release version v0.8.0 label Jun 15, 2026
@rtcoder
rtcoder marked this pull request as ready for review June 16, 2026 06:36
@rtcoder
rtcoder merged commit 10c72ef into master Jun 16, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.8.0 Release version v0.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant