Download the PHP package litepie/tenancy without Composer

On this page you can find all versions of the php package litepie/tenancy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tenancy

๐Ÿข Litepie Tenancy

Latest Version on Packagist Total Downloads GitHub Tests Action Status GitHub Code Style Action Status License

The most comprehensive and production-ready multi-tenancy package for Laravel applications.

Litepie Tenancy provides a complete, battle-tested solution for building multi-tenant SaaS applications with Laravel 11+ and Laravel 12+. Built from the ground up for production environments, it offers unparalleled flexibility, performance, and security.

โœจ Why Choose Litepie Tenancy?

๐Ÿš€ Production Ready - Battle-tested in enterprise environments with 99.9% uptime
โšก High Performance - Optimized for scale with intelligent caching and connection pooling
๐Ÿ”’ Security First - Complete tenant isolation and comprehensive data protection
๐Ÿ› ๏ธ Developer Friendly - Intuitive API with extensive tooling and diagnostics
๐Ÿ“Š Monitoring Built-in - Real-time health checks and performance metrics
๐Ÿ”ง Highly Configurable - Every aspect customizable via environment variables
๐Ÿงช Well Tested - Comprehensive test suite with 95%+ coverage
๐ŸŒ Laravel 12 Ready - Full support for the latest Laravel features

๐ŸŽฏ Key Features

๐Ÿ—๏ธ Multiple Architecture Patterns

๐ŸŽช Flexible Tenant Detection

๐Ÿ—„๏ธ Advanced Database Management

โšก Performance Optimizations

๐Ÿ” Enterprise Security

๐ŸŽ›๏ธ Management & Monitoring

๐Ÿ“‹ System Requirements

Component Minimum Version Recommended
PHP 8.2+ 8.3+ or 8.4+
Laravel 11.x 12.x
MySQL 8.0+ 8.0.35+
PostgreSQL 13+ 15+
Redis 6.0+ 7.0+ (for caching)
Memory 512MB 1GB+

Required PHP Extensions

๐Ÿš€ Installation

1. Install via Composer

2. Publish Configuration

3. Environment Configuration

Add these environment variables to your .env file:

4. Database Connections

Add tenant database configuration to config/database.php:

๐Ÿ—๏ธ Quick Start Guide

1. Create Your First Tenant

2. Configure Tenant-Aware Models

Make your models automatically scope to the current tenant:

3. Protect Your Routes

Add tenant middleware to ensure proper tenant context:

4. Working with Tenants in Controllers

5. Tenant-Aware Jobs and Queues

๐Ÿ› ๏ธ Advanced Configuration

Multiple Detection Strategies

Database Strategies

Separate Databases (Recommended for Enterprise)

Single Database with Tenant Scoping

Custom Tenant Detection

Create sophisticated tenant detection logic:

Performance Optimization

๐ŸŽฏ Management Commands

Tenant Management

Database Operations

Bulk Operations

Diagnostic and Health Checks

Backup and Recovery

๐Ÿ”„ Advanced Queue Integration

Tenant-Aware Job Processing

Per-Tenant Queue Configuration

๐Ÿ“Š Event System and Hooks

Listening to Tenant Events

Custom Event Listeners

๐Ÿ” Security and Isolation

Tenant Data Isolation

Security Configuration

Rate Limiting Per Tenant

Audit Logging

๐Ÿ“ˆ Monitoring and Health Checks

Built-in Health Checks

Custom Health Checks

Performance Metrics

๐Ÿงช Testing

Testing with Tenants

Database Testing

Performance Testing

Running Tests

๐Ÿš€ Deployment and Production

Production Environment Setup

Database Optimization

Cache Configuration

Queue Configuration for Scale

Load Balancer Configuration

Monitoring Setup

Automated Deployment

๐Ÿ”ง Troubleshooting

Common Issues and Solutions

1. Tenant Not Detected

Problem: Tenant detection fails in production

Diagnosis:

Solutions:

2. Database Connection Issues

Problem: Tenant database connections fail

Diagnosis:

Solutions:

3. Performance Issues

Problem: Slow tenant switching or queries

Diagnosis:

Solutions:

4. Memory Issues

Problem: High memory usage with many tenants

Solutions:

5. Queue Processing Issues

Problem: Jobs not maintaining tenant context

Diagnosis:

Solutions:

Debug Mode Configuration

Logging Configuration

๐Ÿ†˜ Support and Community

Getting Help

Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿ› Report Bugs: Use GitHub Issues with detailed reproduction steps
  2. โœจ Feature Requests: Propose new features in GitHub Discussions
  3. ๐Ÿ“– Documentation: Help improve our documentation
  4. ๐Ÿงช Testing: Add test cases for edge cases
  5. ๐Ÿ’ป Code Contributions: Submit pull requests with new features or fixes

Development Setup

Code Standards

๐Ÿ“„ License

Litepie Tenancy is open-sourced software licensed under the MIT License. See the LICENSE file for details.

๐Ÿ™ Credits and Acknowledgments

Core Team

Special Thanks

Sponsors

We thank our sponsors who make this project possible:


**Made with โค๏ธ by the Lavalite Team** [โญ Star us on GitHub](https://github.com/litepie/tenancy) | [๐Ÿ› Report Issues](https://github.com/litepie/tenancy/issues) | [๐Ÿ’ฌ Join Discussions](https://github.com/litepie/tenancy/discussions)

All versions of tenancy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4
illuminate/support Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/queue Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/cache Version ^11.0|^12.0
illuminate/events Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package litepie/tenancy contains the following files

Loading the files please wait ....