Download the PHP package bilhackmac/databases-manager-module without Composer

On this page you can find all versions of the php package bilhackmac/databases-manager-module. 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 databases-manager-module

Thelia 2 Databases Manager module

Allows managing multiple connections to databases for other modules and provides commands to parse schema.xml files with multiple definitions.

Installation

Manually…

Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is DatabasesManager.

… or with Composer

Add it in your main thelia composer.json file.

Then

Activate it in your thelia administration panel.

Usage

1. schema.xml

Unmodified schema.xml files continue to work as expected but you can now add a new root databases node instead of database.

2. Commands

Databases manager override two Thelia 2 commands and adds one.

and

always work as expected but now handles databases and multiples database nodes in schema.xml files. These commands also add an empty database configuration for every unkown database name in configuration file (e.g. : anotherDB in previous schema.xml).

can recover schema.xml if unexpected exit happens during any of two previous command (e.g. : Ctrl + C).

3. Configuration

Access to databases configuration by clicking on Configure from backoffice module manager. You can now add/edit/delete databases configurations.
But be careful, configuration labels have to be the same as schema.xml database nodes name, otherwise, models will not be able to find connection to their databases.

You can define database configuration for your current environment (prod by default and dev when accessing with index_dev.php). Environment configuration with the same label as shared configuration overwrite it.
It's can be useful if you don't want that dev environment access same external database as prod environment.

4. Overwite Thelia default configuration

This feature seems to work, but it's not tested.
If you want connect to another Thelia database than the default one, labeled it thelia. By this way, you can have a production database and a development database.


All versions of databases-manager-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer 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 bilhackmac/databases-manager-module contains the following files

Loading the files please wait ....