Skip to content

Commit d98b292

Browse files
committed
environment variables
1 parent 6fe3df0 commit d98b292

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ These are all the configuration options and their default value between brackets
8383
- "debug": Show errors in the "X-Debug-Info" header (`false`)
8484
- "basePath": URI base path of the API (determined using PATH_INFO by default)
8585

86+
All the above are also available as environment variables, so for instance:
87+
88+
- PHP_CRUD_API_DRIVER=mysql
89+
- PHP_CRUD_API_ADDRESS=localhost
90+
- PHP_CRUD_API_PORT=3306
91+
- PHP_CRUD_API_DATABASE=php-crud-api
92+
- PHP_CRUD_API_USERNAME=php-crud-api
93+
- PHP_CRUD_API_PASSWORD=php-crud-api
94+
- PHP_CRUD_API_DEBUG=1
95+
96+
The environment variables take precedence over the PHP configuration.
97+
8698
## Limitations
8799

88100
These limitation and constrains apply:

0 commit comments

Comments
 (0)