Configuration

Since version 2.0.4, a configuration system has been implemented.

Configuration is made via environments variables. You can either:

  • Define environments variables on your system

  • Use PHPDotEnv to load environment variables through a .env file.

Configurations available

At the moment, you can configure curl options and the adapter used internally.

The HTTP adapter can either be curl or socket. By default, it will be curl if available.

HTTP_ADAPTER=curl

If you are using a cURL adapter, you can specify CURL_OPT directly in the configuration file. Here’s an example:

CURLOPT_SSL_VERIFYPEER=1