I'm currently working on a PHP application and I'm wondering if it's a good practice to use constants for storing configuration values. I have some settings that need to remain fixed throughout the application and I don't want them to be modified or accidentally changed. I've heard that constants can be a good way to ensure these values are unchanged, but I wanted to get some opinions and experiences from you all.
Do you think using constants for configuration values in PHP applications is a good idea? Have you used them before and found them to be beneficial? Or do you have any alternative suggestions for managing configuration values? I'd love to hear your thoughts and experiences on this matter.
Thanks in advance!