Repository navigation
v2.0.0 — Multi-tenant SaaS framework
Changelog
[v2.0.0] — 2026-06-15
Tenancy
- Shared-table strategy (
tenant_idcolumn, auto-scoped queries) - Database-per-tenant strategy (connection-level isolation)
- Four tenant resolvers:
header,subdomain, JWT (Bearer token),session TenantService: onboard, suspend, resume, offboard lifecycleTenantProvisioner: atomic DB creation with migration rollback on failureRequestLifecycle: safe static state reset for worker-mode PHP
HTTP Layer
- Immutable
Pipelinewith outermost-first middleware execution AuthMiddlewareInterfaceintegration point for auth providersRouterbacked by FastRoute with{param}segments- Immutable
Request/Responsevalue objects; request attributes - Response streaming mode
Code Generation
EntityBuilder:belongsTo→ typed nullable property,hasMany→ typed array propertyMigrationBuilder:FOREIGN KEYconstraints,INDEX/UNIQUE INDEXclauses- Topological sort in
generate:allfor dependency-ordered timestamps make:middlewareandmake:controllerscaffolding commands
Migration System
- Batch-tracked forward/rollback with dry-run mode
migrate:all-tenantswith--parallel Nconcurrent worker processes- Suspended tenants skipped from bulk migrations
Infrastructure
- DI container with reflection-based auto-wiring
- PHPStan at level 8, clean
- CI matrix: PHP 8.3, 8.4, 8.5
- Codecov coverage reporting
.gitattributesfor Packagist dist archive exclusions
What's Changed
- Feature/forge multi tenant by @vedavith in #3
- Implement CLEANUP.md fixes: security, DI, routing, streaming, concurrency, and generator improvements by @vedavith in #4
- Update readme to reflect current implementation by @vedavith in #5
- Feature/forge multi tenant by @vedavith in #6
- Multi-tenant enhancements: JWT resolver, PHPStan, HTTP layer, coverage by @vedavith in #7
- Feature/forge multi tenant by @vedavith in #8
- Multi-tenant SaaS framework: resolvers, scaffolding, auth layer, and polish by @vedavith in #9
- Feature/forge multi tenant by @vedavith in #10
- Merge pull request #10 from vedavith/feature/forge-multi-tenant by @vedavith in #11
- Feature/forge multi tenant by @vedavith in #12
- Docs sync, .gitattributes, and CLI reference updates by @vedavith in #13
New Contributors
Full Changelog: https://github.com/vedavith/Entity-Forge/commits/v2.0.0