All individual subscriptions are 50% off this week only!

1 year ago

Where to store a json configuration file in the codebase?

Posted 1 year ago by schroedermatthias


when dealing with the Google API, you need files like client_secret.json for configuring the API client. Unfortunately the API client needs this file to work, there is no chance of putting the values in config/services.php and json_enconde()-ing them.

Where would you put files like this?




Is there some kind of convention? In /config it would make sense, but it feels a bit messy, because there are only *.php files that belong to / can be read by the framework.

Thanks for your suggestions :)


Please sign in or create an account to participate in this conversation.