Download the PHP package nedsbeds/profile_split_enable without Composer

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

Github Repo deprecated!

This module is now managed at Drupal.org https://www.drupal.org/project/profile_split_enable

To switch, please run composer remove nedsbeds/profile_split_enable and composer require 'drupal/profile_split_enable:^2.0'

Profile Split Enable

This module allows you to install Drupal from a custom Drupal installation profile, ignoring the profile that is set in the default core.extension.yml file.

When using config_split it allows you to dynamically enable and import configuration from a config split for each of your custom installation profiles.

Introduction

Theoretically, using multi-site Drupal 8, you might want to have multiple profiles. Then, you can install various sites on your multi-site platform from any one of the profiles. Going a step farther, you likely want to have configuration for each of the profiles.

There is an issue currently between drupal/core, drupal/config_split, and acquia/blt that isn't allowing config splits at the profile level to work.

The issue, fundamentally, is that a config split model assumes a default set of configuration that is overwritten in the various splits. This works great for single profile models. However with a multi-profile model, this immediately breaks down because drupal/core writes the profile key into core.extensions.yml. The result? As soon as you try to import config on a site with an active profile that is not the profile in core.extensions.yml you get the following error:

This module attempts to remedy the situation by filtering the current profile name when Drupal reads or writes to the core.extension file on disk so that the currently installed profile never conflicts with the profile in your default configuration.

Additionally, if you are using config_split, it will enable a split that matches the name of your installed profile at run time. This allows you to have configuration specifically enabled per split.

Requirements

This module requires the following modules:

Recommended Modules

Installation

This module is distributed through packagist therefore should be installed using composer.

composer require nedsbeds/profile_split_enable ^1.0.0

Configuration

The module has no menu or modifiable settings. There is no configuration.

For this module to function, you MUST add it as a dependency of your profile, and then ensure it is also enabled in config (i.e. your core.extenstion file)

This is vital since the module must be enabled before and after you attempt to import your configuration.

example_profile/example_profile.info.yml

config/default/core.extension.yml

Multiple Profiles

For basic functionality this module only requires Drupal 8 and the config_filter module. Once enabled, it will allow you to install Drupal using a profile that is different to the one specified in your default core.extension file.

You will likely want to use a profile such as acquia/lightning which allows you to create sub-profiles (https://docs.acquia.com/lightning/subprofile). It is recommended that you use acquia/blt to setup your drupal project since sub-profiles currently need a patch to Drupal core to function.

Profile Splits

After the first installation of Drupal with your base profile, enable the config_split module and create splits for each of your profiles. The machine name of the split should match the machine name of your profile.

Limitations/Outstanding features

This module does not currently support installation from existing configuration. You are expected to be using a workflow that involves installing Drupal from a profile and then importing configuration. This workflow is the approach that tools such as Acquia BLT and Acquia ACSF utilise.

Maintainers


All versions of profile_split_enable with dependencies

PHP Build Version
Package Version
Requires drupal/core Version ^8.6
drupal/config_filter Version ^1.0.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 nedsbeds/profile_split_enable contains the following files

Loading the files please wait ...