Download the PHP package operations/drupal-settings without Composer

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

Drupal Settings

This PHP Package is a smart include for Drupal settings.php.

Add it to your project to simplify your settings.php file by using common defaults for each hosting vendor and environment types.

It just makes things easier. For example, when using Lando, you don't have to set the database settings or DRUSH_OPTIONS_URI, and it automatically enables development mode.

Usage

  1. Install with composer:

    composer require operations/drupal-settings`

  2. Add snippet to sites/default/settings.php:

    if (file_exists(DRUPAL_ROOT . "/../vendor/operations/drupal-settings/Settings/settings.include.php")) { require DRUPAL_ROOT . "/../vendor/operations/drupal-settings/Settings/settings.include.php"; }

  3. Profit.

To override any defaults provided by settings.include.php, simply add them to your settings.php file after the snippet.

Components

  1. Drupal Settings Include File - settings.include.php

    Include this file from settings.php and remove all the extra settings. For full documentation on what it does, see the file ./Settings/settings.include.php.

  2. Vendor-specific settings files - Included automatically when their environment variables are detected.

  3. Composer Autoload File - autoload.php

    This file is included in your site's Autoloader as early as possible.

    It is used to set Environment variables like DRUSH_OPTIONS_URI automatically.

Features

This tool attempts to automate as much configuration as possible for multiple host providers.

The main features are:

  1. Detect host vendor environments and includes settings.VENDOR.php files automatically.
  2. Sets $databases credentials from host vendor information, or uses MYSQL_USER-style variables.
  3. Sets DRUSH_OPTIONS_URI globally so any call to drush has the correct URL.
  4. Sets DRUPAL_ENV environment variable to prod when a production environment is detected. (Defaults to dev).
  5. Includes environment specific settings.DRUPAL_ENV.php files from this project and sites/default/settings.DRUPAL_ENV.php from your site's source code if it exists.
  6. Automatically enables development features when DRUPAL_ENV==dev by including Drupal's example.settings.local.php.

Supported Providers

  1. Lando
  2. DDEV
  3. Platform.sh
  4. Acquia
  5. OpenDevShop

We invite all other systems to submit merge requests to the project here: https://git.drupalcode.org/project/ox/-/tree/1.x/src/composer/Plugin/DrupalSettings/Settings/Vendors

Development

This tool is a part of the Drupal Operations / OX project. The code is maintained in the monorepo "ox".

See https://git.drupalcode.org/project/ox for more information.


All versions of drupal-settings with dependencies

PHP Build Version
Package Version
No informations.
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 operations/drupal-settings contains the following files

Loading the files please wait ....