-
PHP Dotenv
Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Recently, I jumped to reading on the documentation of the function putenv() and define() and the array $_ENV to understand the different between all. Also, I looked at the library phpdotenv and how it handles environment variables since its the standard approach to go with when dealing with environment variables in PHP.
The difference is important because it allows some flexibility: in you local computer, you can set values from a local .env file. In a stating server, those value can come from actual env vars set at the OS level. Production server can use the approach, but the values can be managed by something like Vault.
Related posts
-
Terraform & HashiCorp Vault Integration: Seamless Secrets Management
-
I abandoned OpenLiteSpeed and went back to good ol' Nginx
-
Keep it cool and secure: do's and don'ts for managing Web App secrets
-
Kubernetes Secret Management
-
AWS Secrets Manager for on-premise and other cloud accounts scaled architecture