What Zenith Delivers
A comprehensive look at the capabilities powering custom multi-tenant applications.
Multi-Tenant Architecture
Built from the ground up for SaaS applications with complete tenant isolation.
Database-per-Tenant
Complete data isolation with separate databases for each tenant. No data leakage, easy backups, and per-tenant scaling.
- Complete data isolation
- Per-tenant backups
- Independent scaling
Subdomain Routing
Automatic tenant detection via subdomains. Each tenant gets their own URL like acme.yourapp.com.
- Automatic detection
- Custom domain support
- Seamless switching
SuperAdmin Portal
Central management dashboard for platform administrators. Create tenants, manage users, monitor system health.
- Tenant management
- User provisioning
- Platform settings
Enterprise-Grade Security
Comprehensive protection built into every layer.
CSRF Protection
Token-based protection on all forms prevents cross-site request forgery attacks.
Login Throttling
Brute force prevention with 5 attempts per 15 minutes. Automatic lockout.
AES-256-GCM
Military-grade encryption for sensitive data. Authenticated encryption with associated data.
RBAC
Role-based access control with SuperAdmin, Admin, and User roles.
SQL Injection
Prepared statements throughout. No raw queries with user input.
XSS Prevention
Automatic output escaping in views. Content Security Policy headers.
Secure Sessions
HttpOnly, Secure, SameSite cookies. Session regeneration on login.
bcrypt Hashing
Password hashing with bcrypt. Strength validation on creation.
Active Record ORM
Elegant database interactions with schema definitions in your models.
Schema in Models
Define your table structure directly in model classes. No separate migration files needed.
protected static array $schema = [
'columns' => [
'id' => ['type' => 'integer', 'primary' => true],
'name' => ['type' => 'string', 'length' => 255],
]
];
Auto-Sync
CLI command automatically creates and updates tables based on model schemas.
- Create tables automatically
- Add new columns
- Update indexes
- Foreign key support
MySQL
Full support with optimized queries
PostgreSQL
Type-safe with full feature support
SQLite
Perfect for development and testing
Core Framework Features
Modern architecture with everything you need to build robust applications.
Routing
RESTful routing with named routes, groups, prefixes, and parameter validation.
- Named routes
- Route groups
- Middleware support
- Domain routing
DI Container
IoC container with auto-wiring, service providers, and interface bindings.
- Auto-wiring
- Singleton pattern
- Service providers
- Interface bindings
CLI Tools
Interactive command-line interface for setup, migrations, and administration.
- Setup wizard
- Database init
- Schema sync
- Tenant management
MVC Architecture
Clean separation of concerns with Models, Views, and Controllers.
- PHP-based views
- Layout system
- View helpers
- Template inheritance
Logging
PSR-3 compatible logging with daily rotation and context support.
- Multiple levels
- Daily rotation
- Context data
- Exception tracking
Modern PHP
Built with PHP 8.4+ features for maximum performance and type safety.
- Readonly properties
- Type-safe enums
- Match expressions
- Constructor promotion
Ready to Get Started?
Learn how to set up Zenith and start building your multi-tenant application.