This project allows you to export your Drupal configuration as JSON. This JSON file can then be accessed by other applications or frameworks.
This project allows you to export your configs as a JSON to be accessed by any other application / Framework
How export your config to JSON
$config = [
'customProject' => [
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
'keyX' => 'valueX',
],
];
\Drupal::service("config_export_json.api")->add($config);JSON
You can access at:
https://yoursite.local/sites/default/files/config/config.json
P.s. If your prefer you can access your JSON at:
https://yoursite.local/api/config.json
Example:
Ask your assistant about Config Export JSON
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- config Drupal core
- rest Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.9 | Stable | 8–10 | Sep 7, 2023 |