Download the PHP package vardot/module-installer-factory without Composer

On this page you can find all versions of the php package vardot/module-installer-factory. 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 module-installer-factory

Module Installer Factory Class

Provides developers with a class for modules installer factory.

This class is working with module_name.info.yml file with any modules key.

Let us have the module_name.info.yml with the following items under install key for example:

So that the installed modules could be disabled in some projects without the need to disable the used module.

It's installed only not a dependency.

How to use the Module Installer Factory Class

1. Require the Package in your root composer.json file

Or require the Package in your Project with a command

2. Add Needed Namespace

Add the following namespace in custom modules or custom installation profiles.

Use the following methods in your custom install events

Install a list of modules

Install the list of module in the varbase_core.info.yml

Arguments for installList method:

which is equivalent to:

Set the weight of the module after installation of the list of modules

To make sure that any hook or event subscriber works after all used modules.

Arguments for setModuleWeightAfterInstallation:

To set the weight of the module after listed modules with a selected set of modules for example: If the varbase_core.info.yml file had

even tho if the module did not enable them.

or can be passed as an array as follows:

At this point any hook or event subscriber will be processed after the listed modules.

Import configuration from scaned directory

Example 1: Import all field storage configs

Example 2: Import all custom settings files from a managed folder in the module.

Import configuration from array list of config files

Example 1: Import configs from a managed config folder

Arguments for importConfigsFromList method:

It could be used in some cases to change the default View for the Content or People with multilingual sites or extra filters by other modules. It is important which manage the Assemble components and install installation step.

Example 2: In Use Import of Configs

Having a custom config for a disabled module, which will be Enabled and Disabled many times with development and deployments, but they need to have the basic extra change for config over the default settings or configs for the used module.


All versions of module-installer-factory with dependencies

PHP Build Version
Package Version
Requires drupal/core Version ~9 || ~10
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 vardot/module-installer-factory contains the following files

Loading the files please wait ....