From d98b2923acf448aafe184c09ccefd9fa0ba6e692 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Sun, 27 Sep 2020 15:29:31 +0200 Subject: [PATCH] environment variables --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 77aa160..6fa232c 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,18 @@ These are all the configuration options and their default value between brackets - "debug": Show errors in the "X-Debug-Info" header (`false`) - "basePath": URI base path of the API (determined using PATH_INFO by default) +All the above are also available as environment variables, so for instance: + +- PHP_CRUD_API_DRIVER=mysql +- PHP_CRUD_API_ADDRESS=localhost +- PHP_CRUD_API_PORT=3306 +- PHP_CRUD_API_DATABASE=php-crud-api +- PHP_CRUD_API_USERNAME=php-crud-api +- PHP_CRUD_API_PASSWORD=php-crud-api +- PHP_CRUD_API_DEBUG=1 + +The environment variables take precedence over the PHP configuration. + ## Limitations These limitation and constrains apply: