php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Allow config parameter to load from external file/env

Open zemian opened this issue 2 years ago • 1 comments

Hi,

Sorry if I am repeating this request. (I tried searching and can't find it). The documented way to make configuration is to modify at the end of the single api.php file for any of config parameters (DB connection etc). It would be great if these can be loaded from external file or ENV variables without have to modify the original api.php at all. Anyone is interested in this feature?

zemian avatar Sep 21 '22 21:09 zemian

Did you see #734?

mevdschee avatar Sep 21 '22 21:09 mevdschee

Not exactly what I was looking, but I think using 'api.include.php' would work for me for now. :) Thanks @mevdschee !

zemian avatar Sep 22 '22 11:09 zemian