Development code during deployment
Good day to you all, I have a question regarding the development code during the deployment of a PHP project app. In using APIs for a project which we often need an API key along with it for it to be functional. We can store the key/s inside the .env file to hide those data by not hard coding them into the source code. In PHP people uses libraries like phpdotenv to read those data and use it for the application. Now my question is when we use libraries such as phpdotenv (specified in the ârequire-devâ section in the composer.json), wouldnât deploying the app with those code cause the app to crash in the production server? as the library is only downloaded in our development server. (assume Iâm using Heroku for my hosting) Or is there another way in using environment variable :|