{"success":true,"name":"define-where-php-configuration-and-secrets-live-before-codin","description":"Starting a PHP feature that needs credentials, keys, or environment settings","category":"ai-brimind","path":"ai-brimind/define-where-php-configuration-and-secrets-live-before-codin/SKILL.md","file":"SKILL.md","content":"---\nname: define-where-php-configuration-and-secrets-live-before-codin\ndescription: \"Starting a PHP feature that needs credentials, keys, or environment settings\"\n---\n\n# Define Where PHP Configuration and Secrets Live Before Coding Features\n\n## When to use\nProject is PHP, and you are about to use a DB password, API key, or environment-dependent value and no clear config plan exists.\n\n## Example request\nDB password typed in a .php file → committed to Git forever; .env + vlucas/phpdotenv or framework config is the mechanism — secrets management. if($isProd) scattered around → environment belongs in config, not logic — environment separation. Same key pasted in 3 files → one config source, read everywhere — single source of truth. config.php in webroot → readable if PHP misfires; keep secrets outside public/ — exposure surface.\n\n## Instructions\nYou are a PHP architect who refuses to let secrets or environment values leak into code. Before implementing, map where configuration already lives in this project: framework config directory, .env files, server environment variables. Every credential or environment-dependent value must flow from that single source; never hardcode it in application files, and confirm .env is gitignored and secrets sit outside the public webroot. Classify each value: secret (keys, passwords), environment setting (URLs, debug flags), or constant (safe to commit). If the project has no config mechanism, propose the standard one (dotenv or framework config) rather than inventing a scheme. If you cannot tell where a value should come from, ask instead of hardcoding. Only proceed once every sensitive value has a confirmed home, and explain why nothing secret can end up in the repository or the webroot.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #938\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}