{"id":21702896,"url":"https://github.com/operations-project/drupal-settings","last_synced_at":"2026-01-06T12:07:26.122Z","repository":{"id":183473903,"uuid":"670212754","full_name":"operations-project/drupal-settings","owner":"operations-project","description":"Automatic Drupal settings.","archived":false,"fork":false,"pushed_at":"2024-09-11T16:17:52.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"2.x","last_synced_at":"2024-11-10T05:13:37.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/operations-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["jonpugh"],"patreon":"jonpugh","open_collective":"drupal-operations","custom":["https://thinkdrop.net"]}},"created_at":"2023-07-24T14:37:32.000Z","updated_at":"2023-07-24T14:37:48.000Z","dependencies_parsed_at":"2023-11-15T17:38:18.324Z","dependency_job_id":"63fb33e4-ae30-4ae2-a7fa-3b13ea501491","html_url":"https://github.com/operations-project/drupal-settings","commit_stats":null,"previous_names":["drupal-operations/drupal-settings","operations-platform/drupal-settings","operations-project/drupal-settings"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fdrupal-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fdrupal-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fdrupal-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operations-project%2Fdrupal-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/operations-project","download_url":"https://codeload.github.com/operations-project/drupal-settings/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226401084,"owners_count":17619281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T21:22:02.001Z","updated_at":"2026-01-06T12:07:26.029Z","avatar_url":"https://github.com/operations-project.png","language":"PHP","funding_links":["https://github.com/sponsors/jonpugh","https://patreon.com/jonpugh","https://opencollective.com/drupal-operations","https://thinkdrop.net"],"categories":[],"sub_categories":[],"readme":"# Drupal Settings\n\nThis PHP Package is a smart include for Drupal settings.php.\n\nAdd it to your project to simplify your settings.php file by using common defaults for each hosting vendor and environment types.\n\nIt 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.\n## Usage\n\n1. Install with composer:\n\n       composer require operations/drupal-settings`\n\n2. Add snippet to sites/default/settings.php:\n\n       if (file_exists(DRUPAL_ROOT . \"/../vendor/operations/drupal-settings/Settings/settings.include.php\")) {\n           require DRUPAL_ROOT . \"/../vendor/operations/drupal-settings/Settings/settings.include.php\";\n       }\n\n3. Profit.\n\nTo override any defaults provided by [`settings.include.php`](./Settings/settings.include.php), simply add them to your settings.php file after the snippet.\n\n## Components\n\n1. [Drupal Settings Include File](./Settings/settings.include.php) - settings.include.php\n\n    Include this file from settings.php and remove all the extra settings. For full documentation on what it does, see\n    the file [./Settings/settings.include.php](./Settings/settings.include.php).\n\n2. [Vendor-specific settings files](./Settings/Vendors) - Included automatically when their environment variables are detected.\n\n3. [Composer Autoload File](./Settings/autoload.php) - autoload.php\n\n    This file is included in your site's Autoloader as early as possible.\n\n    It is used to set Environment variables like DRUSH_OPTIONS_URI automatically.\n\n## Features\n\nThis tool attempts to automate as much configuration as possible for multiple host providers.\n\nThe main features are:\n\n1. Detect host vendor environments and includes `settings.VENDOR.php` files automatically.\n2. Sets `$databases` credentials from host vendor information, or uses `MYSQL_USER`-style variables.\n2. Sets `DRUSH_OPTIONS_URI` globally so any call to drush has the correct URL.\n3. Sets `DRUPAL_ENV` environment variable to `prod` when a production environment is detected. (Defaults to `dev`).\n4. 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.\n4. Automatically enables development features when `DRUPAL_ENV==dev` by including Drupal's `example.settings.local.php`.\n\n## Supported Providers\n\n1. Lando\n2. DDEV\n3. Platform.sh\n4. Acquia\n5. OpenDevShop\n\nWe 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\n\n## Development\n\nThis tool is a part of the [Drupal Operations / OX project](https://drupal.org/project/ox). The code is maintained in the monorepo \"ox\".\n\nSee https://git.drupalcode.org/project/ox for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperations-project%2Fdrupal-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperations-project%2Fdrupal-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperations-project%2Fdrupal-settings/lists"}