# Sensitive credentials in Slim 4 project

**URL:** <https://discourse.slimframework.com/t/sensitive-credentials-in-slim-4-project/4317>\
**Category:** Questions\
**Created:** [July 29, 2020, 5:50pm UTC](https://discourse.slimframework.com/t/sensitive-credentials-in-slim-4-project/4317 "2020-07-29T17:50:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![EugeneM](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@EugeneM](https://discourse.slimframework.com/u/EugeneM)\
**Post date:** [July 30, 2020, 10:15am UTC](https://discourse.slimframework.com/t/sensitive-credentials-in-slim-4-project/4317/4 "2020-07-30T10:15:59Z")

</div>

Thanks again to @darkalchemy for the solution.  
I tried to implement selective/config, and, for today, it works in my Slim 4 project. Especially, “Injecting the configuration” is very convenient.

In my project, base url of some image is concatenated with image’s name. These images’ names are written in MySQL DB.

So, to get images’ names and base url together in server response.

1. phpdotenv (it’s not work):

2. selective/config (it works)

Sorry, but I still to wonder. Is it safe enough to keep sensitive credentials in settings.php of Slim 4 project?

Thanks in advance.

---

_[View the full topic](https://discourse.slimframework.com/t/sensitive-credentials-in-slim-4-project/4317)._
