PHP code example of davyin / drupal_settings

1. Go to this page and download the library: Download davyin/drupal_settings library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

davyin / drupal_settings example snippets


    "extra": {
        "drupal-scaffold": {
            "file-mapping": {
                "[web-root]/sites/default/default.settings.php": {
                    "mode": "replace",
                    "overwrite": false,
                    "path": "vendor/davyin/drupal_settings/assets/default.settings.php"
                },
                "[web-root]/sites/default/dev.services.yml": {
                    "mode": "replace",
                    "overwrite": false,
                    "path": "vendor/davyin/drupal_settings/assets/dev.services.yml"
                },
                "[web-root]/sites/default/local.settings.php": {
                    "mode": "replace",
                    "overwrite": false,
                    "path": "vendor/davyin/drupal_settings/assets/settings.local.php"
                },
                "[web-root]/sites/default/prod.services.yml": {
                    "mode": "replace",
                    "overwrite": false,
                    "path": "vendor/davyin/drupal_settings/assets/prod.services.yml"
                },
                "[web-root]/sites/default/settings.platform.php": {
                    "mode": "replace",
                    "overwrite": false,
                    "path": "vendor/davyin/drupal_settings/assets/settings.platform.php"
                },
                "[web-root]/sites/default/settings.php": {
                    "mode": "replace",
                    "overwrite": false,
                    "path": "vendor/davyin/drupal_settings/assets/default.settings.php"
                }
            },
            "locations": {
                "web-root": "docroot/"
            }
        },
    }