How to securely connect to oracle database?

Hi Friends,

I have developed an API for a client and Could you please help me secure database connection as i don’t want to hard code any credentials in the PHP script.

Thanks in advance.

The standard method is to put the credentials in the environment (various ways to accomplish that: Apache configuration, .env file that you don’t add to your repository, etc.), and have your code read them from there.