Download the PHP package kjos/orchestra without Composer

On this page you can find all versions of the php package kjos/orchestra. 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 orchestra

Tests Packagist Version PHP License

🌐 Multilangue | Multilingual

πŸ‡¬πŸ‡§ English

kjos orchestra

A powerful multi-tenancy manager for Laravel, with built-in support for domain isolation, database separation, and automated Apache virtual host configuration.

Installation

composer require kjos/orchestra

Master tenant installation

Before beginning you must install the master tanant. We will ask you to configure the User wo will use for virtuals hosts creation. When User is configure, a shedule task is creating in your crontab table, you can type crontab -e to see it. The shedule task will use your User with it privileges to automate the creation et configuration of your virtualhost. virtualhosts are configured in /etc/apache2/sites-available directory.

Concept

kjos/orchestra simplifies the management of multi-tenant applications by providing:

It’s ideal for SaaS platforms or systems requiring strict tenant isolation.

Getting Started

Master Tenant Setup

Before adding tenants, you must install and configure the master tenant.

What happens during setup?

You’ll configure a system User that will be used to manage Apache virtual hosts.

A scheduled task will be added to your crontab to automate virtual host creation.

Apache virtual hosts are stored in: /etc/apache2/sites-available/

Installation Steps

  1. Create & configure the master tenant

  2. Publish the config file:

  3. Create the database for the master tenant

  4. Add the tenant to the .tenants file at your project root

  5. Create the site/ directory, which will contain subfolders for each tenant

  6. Link each tenant's /public directory to your Laravel public root

  7. Configure the virtual host:

    • Symlink: /var/www/html/{tenant-domain} β†’ project/site/{tenant-name}

    • Apache config: /etc/apache2/sites-available/{tenant-domain}.conf

    • Log file: /var/log/apache2/{tenant-domain}.log
  8. Enable the virtual host:

  9. Register the service provider in config/app.php:

The TenantServiceProvider is the central kernel that initializes and resolves tenant-specific context and configuration.

Artisan Commands

Install Master Tenant

php artisan orchestra:install the_master_tenant_name --domain=master_tenant_domain --driver=[mysql|pgsql]

❌ Uninstall Master Tenant

php artisan orchestra:uninstall the_master_tenant_name --driver=[mysql|pgsql]

βž• Create a New Tenant

php artisan orchestra:create the_tenant_name --domain=the_tenant_domain --driver=[mysql|pgsql] --migrate

βž– Delete a Tenant

php artisan orchestra:delete the_tenant_name --driver=[mysql|pgsql]

🧾 Available Options

Option Description
--domain The domain of the tenant
--driver Database driver pgsql or mysql
--migrate Either migrate the fresh tenant database or not

Laravel natif command

βž– Migrate or seed a specific tenant

php artisan migrate --tenant=tenant_name php artisan db:seed --class=ExempleSeeder --tenant=tenant_name

βž– Migrate or seed a specific all tenants

php artisan migrate --tenant php artisan db:seed --class=ExempleSeeder --tenant

Additional Features

Each tenant has its own:

Crontab automation for managing virtual hosts

Support for Laravel testing with tenant isolation

Dynamic tenant discovery via .tenants file

.

πŸ“ Directory Structure

πŸ‘€ Author

Maintained by Jean Koffi

πŸ“„ License

MIT Β© kjos/orchestra

🀝 Call for contributions

This project is open to contributions! Are you a developer, passionate about Laravel, or interested in multi-tenant architecture?

There are many other command for additionally configuration.


All versions of orchestra with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 ||^12.0
illuminate/database Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/console Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/routing Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
laravel/pint Version ^1.20
archtechx/enums Version ^1.1
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 kjos/orchestra contains the following files

Loading the files please wait ...