laralord-project / server
Laralord enables multi-tenancy for any stateless Laravel application without requiring code updates.It is an OpenSwoole wrapper designed to provide a high-performance, multi-tenant server setup for Laravel Application.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.2|^8.3|^8.4
- ext-fileinfo: *
- ext-inotify: *
- ext-openswoole: ^22.0|^25.0
- ext-pcntl: *
- ext-redis: *
- ext-sysvmsg: *
- aws/aws-sdk-php: ^3.324
- bamarni/composer-bin-plugin: ^1.8
- guzzlehttp/guzzle: ^7.8
- monolog/monolog: ^3.6
- openswoole/core: ^22.1
- openswoole/ide-helper: ^22.1
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- phpunit/phpunit: ^11.4
Replaces
- dev-main
- 0.1.2
- v0.1.2-rc17
- v0.1.2-rc16
- v0.1.2-rc15
- v0.1.2-rc14
- v0.1.2-rc13
- v0.1.2-rc12
- v0.1.2-rc11
- v0.1.2-rc10
- v0.1.2-rc9
- v0.1.2-rc8
- v0.1.2-rc7
- v0.1.2-rc6
- v0.1.2-rc5
- v0.1.2-rc4
- v0.1.2-rc3
- v0.1.2-rc2
- v0.1.2-rc1
- v0.1.1
- v0.1.1-rc2
- v0.1.1-rc1
- v0.1.0
- v0.1.0-rc7
- v0.1.0-rc6
- v0.1.0-rc5
- v0.1.0-rc4
- v0.1.0-rc3
- v0.1.0-rc2
- v0.1.0-rc1
- dev-swoole-experiment
This package is auto-updated.
Last update: 2025-05-11 16:26:16 UTC
README
Laralord Project - Server
Laralord enables multi-tenancy for any stateless Laravel application without requiring code modifications. It is an OpenSwoole wrapper designed to provide a high-performance, multi-tenant server setup for Laravel applications.
The main idea is to gain the benefits of a multi-tenant application without adding complexity to the development process.
This project aims to separate tenant management from your application's business logic.
You can serve a Laravel application developed with a single-tenant approach in a multi-tenant environment..
What is Laravel?
Laravel is an open source PHP framework for web application development.
Overview of Laravel Trademarks: The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Key Features
-
Multi-Tenant Support:
- Detect tenant ID via headers, cookies, JWT tokens, query strings, or POST data.
- Operate in:
- Single-Tenant Mode: Optimized server for a single tenant with pre-booted Laravel instances for ultra-fast responses.
- Multi-Tenant Mode: Dynamically resolve environment credentials per tenant, supporting concurrent requests with isolated environments.
- S3 Bucket Proxy: Simplifies serving static files and tenant-specific frontends from an S3 or S3-compatible bucket.
-
High Performance:
- Pre-boot Laravel application in Single-Tenant Mode, reducing response delay by up to 20ms.
- Process Isolation: Each request is executed in a separate process using the
pcntl
extension.
-
Unified Queue Workers and Scheduler:
- Fair distribution of resources between tenants in both the queue system and scheduler.
- Supports isolated task execution per tenant, ensuring that each tenant has equal access to resources.
-
Dynamic Credentials Update:
- Periodically fetch and update credentials from HashiCorp Vault, ensuring that tenant environments are always using the latest credentials.
-
Containerization Support:
- Application built for containerization, offering simple and clear configuration, even through environment variables.
Requirements
- PHP: >= 8.2
- PHP Extensions:
openswoole
,inotify
,apcu
,sysvmsg
,pcntl
,redis
- Environment Variables Source: Vault, file-based, or directory-based configurations supported
- System Utilities:
bash
,curl
Documentation
Licensing
This project is licensed under the MIT License - see the LICENSE file for details.