#PHP devs, what's your favorite way to store admin config setting (database and other basics)
If none of these, what and why?
#PHP devs, what's your favorite way to store admin config setting (database and other basics)
If none of these, what and why?
@alpha1beta Environment variables. All other ways listed are wrong.
@alpha1beta Environment variables in staging/prod and .env files on local.
Thanks!
It's funny how these days that's the biggest answer and everyone assumes its for a large app with like Docker etc while I was thinking more along the lines of WP - small single instance.
@alpha1beta Fair.
Environment variables would still be my answer. Keep your keys out of the filesystem if at all possible.
@shawnhooper Solid advice.
It's been so long since I started something from scratch, I gotta say I feel a bit lost. But PHP has gotten so much amazing improvements, I'm looking forward to using.