Securely Storing PHP Configuration Settings

Опубликовано: 01 Октябрь 2024
на канале: Dave Hollingworth
7,424
443

Learn how to securely store configuration settings in a PHP application, using best practices.

Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth

Code shown in the video:
‣ https://gist.github.com/daveh/9e2f2a8...

Links shown in the video:
‣ https://www.12factor.net/config
‣ https://github.com/vlucas/phpdotenv

Gear icons created by Freepik - Flaticon
‣ https://www.flaticon.com/free-icons/gear

00:00 Introduction
00:18 Hardcoded credentials
01:06 PHP constants
02:02 PHP array
03:00 INI file
03:50 JSON and YAML
04:10 Environment variables
05:02 .env file
05:20 phpdotenv
06:14 Ignoring .env
06:55 Summary

#PHP #security #configuracion