{"id":22894247,"url":"https://github.com/clearcodehq/wordpress-config","last_synced_at":"2025-08-23T19:45:21.479Z","repository":{"id":56953631,"uuid":"152413239","full_name":"ClearcodeHQ/wordpress-config","owner":"ClearcodeHQ","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-16T11:50:14.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T13:37:09.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ClearcodeHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-10T11:33:34.000Z","updated_at":"2020-12-16T11:49:36.000Z","dependencies_parsed_at":"2022-08-21T08:20:37.126Z","dependency_job_id":null,"html_url":"https://github.com/ClearcodeHQ/wordpress-config","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fwordpress-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fwordpress-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fwordpress-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fwordpress-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClearcodeHQ","download_url":"https://codeload.github.com/ClearcodeHQ/wordpress-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552972,"owners_count":20795835,"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-12-13T23:17:17.589Z","updated_at":"2025-03-31T22:38:32.776Z","avatar_url":"https://github.com/ClearcodeHQ.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clearcode WordPress Config\n\nAutomagically define WordPress [configuration constants](https://codex.wordpress.org/Editing_wp-config.php) from [environment variables](http://php.net/manual/en/reserved.variables.environment.php) and `.env` file.\n\n# Installation\n\n```shell\n$ composer require clearcode/wordpress-config\n```\n\n# Usage\n\nCopy `wp-config.php` file to WordPress' root directory.\n\nCreate `.env` file and fill in the missing content:\n\n```shell\nDB_NAME=''\nDB_USER=''\nDB_PASSWORD=''\nDB_HOST='localhost'\nDB_CHARSET='utf8mb4'\nDB_COLLATE=''\nDB_PREFIX='wp_'\n\nAUTH_KEY=''\nSECURE_AUTH_KEY=''\nLOGGED_IN_KEY=''\nNONCE_KEY=''\nAUTH_SALT=''\nSECURE_AUTH_SALT=''\nLOGGED_IN_SALT=''\nNONCE_SALT=''\n\nWP_VARS=''\n```\n\nYou can also use environment variables that you have set in your `.env` file via a command line script, by using `source` it into your local shell session:\n\n```shell\n$ source .env\n```\n\nInstead of `.env` file you can use environment variables e.g. defined in you Apache server vhost configuration file:\n\n```shell\n\u003cVirtualHost *:80\u003e\n...\n\tSetEnv DB_NAME ''\n\tSetEnv DB_USER ''\n\tSetEnv DB_PASSWORD ''\n\tSetEnv DB_HOST 'localhost'\n\tSetEnv DB_CHARSET 'utf8mb4'\n\tSetEnv DB_COLLATE ''\n\tSetEnv DB_PREFIX 'wp_'\n\n\tSetEnv AUTH_KEY ''\n\tSetEnv SECURE_AUTH_KEY ''\n\tSetEnv LOGGED_IN_KEY ''\n\tSetEnv NONCE_KEY ''\n\tSetEnv AUTH_SALT ''\n\tSetEnv SECURE_AUTH_SALT ''\n\tSetEnv LOGGED_IN_SALT ''\n\tSetEnv NONCE_SALT ''\n\n\tSetEnv WP_VARS ''\n...\n\u003c/VirtualHost\u003e\n```\n\nYou can use all WordPress configuration constants, optionally you can add your own variables, but if you want to convert them from environment variables to PHP constants, you need to add them to `WP_VARS` environment variable, separated by coma.\n\n# License\n\nGPL3.0+ see [LICENSE.txt](LICENSE.txt) and [AUTHORS.txt](AUTHORS.txt)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Fwordpress-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclearcodehq%2Fwordpress-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Fwordpress-config/lists"}