Download the PHP package apajo/symfony-multi-tenancy-bundle without Composer

On this page you can find all versions of the php package apajo/symfony-multi-tenancy-bundle. 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 symfony-multi-tenancy-bundle

Symfony Multi Tenancy Bundle

Description

There are many packages that provide multi tenancy in Symfony but all of them focus on the database. This package's goal is to provide a way to manage any kind of configuration in your system.

This bundle aims to provide multi tenancy on a higher level. It provides a way to dynamically change the system configuration based on the tenant (database, media provider, mailer etc).

It also bundles a way to manage migrations for each tenant.

The package's development is in early stages, any feedback is welcome.

Requirements

Installation

Configuration

doctrine.yml

You need 2 connections and entity_managers:

In this case thay are named default and tenant but you can name them as you wish.

NB! Third party packages may require the default connection to be present so you might want to keep the default name.

Connection and entity manager default are common for all the individual tenants. Connection and entity manager tenant are specific for the tenant.

doctrine_migrations.yml

Configuration

Adapters

Adapters are responsible for dynamic configuration changes based on tenant table values at runtime.

For more on (built-in) adapters see Adapters directory

Resolvers

Resolvers are responsible for resolving current tenant.

For more on (built-in) resolvers see Resolvers directory

Database migrations

Create migration (or diff)

Migrate tenants

Migrate a single tenant

Examples

Switch/select tenant

Iterate over all tenant environments

Issues

Feel free to report an issue under GitHub Issues

Known Issues

Contributing

Feel free to contribute

Thanks to

This bundle is inspired by the RamyHakam / multi_tenancy_bundle


All versions of symfony-multi-tenancy-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
doctrine/annotations Version ^2.0
doctrine/doctrine-bundle Version ^2.12
doctrine/doctrine-migrations-bundle Version ^3.3
knplabs/gaufrette Version ^0.11.1
symfony/config Version ^6.4|^7.1
symfony/dependency-injection Version ^6.4|^7.1
symfony/filesystem Version ^6.4|^7.1
symfony/mailer Version ^6.4|^7.1
symfony/orm-pack Version ^2.4
symfony/runtime Version ^6.4|^7.1
symfony/security-bundle Version ^6.4|^7.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 apajo/symfony-multi-tenancy-bundle contains the following files

Loading the files please wait ....