These are settings found in certain modules, like the WP-Matomo module, and I am wondering if there is any preference if both types are supported by the setup.
Connect to Matomo >> Matomo Mode:
Self-hosted (PHP API) or Self-hosted (PHP API)
You can choose between three connection methods:
Self-hosted (HTTP API, default): This is the default option for a self-hosted Matomo and should work for most configurations. WP-Matomo will connect to Matomo using http(s).
Self-hosted (PHP API): Choose this, if your self-hosted Matomo and WordPress are running on the same machine and you know the full server path to your Matomo instance.
I have both running on the same machine, so I have selected Self-hosted (PHP API) and provided the file path to my Matomo instance.
Expert Settings >> HTTP connection via:
cURL or fopen
Choose whether WP-Matomo should use cURL or fopen to connect to Matomo in HTTP or Cloud mode.
I have selected cURL because I have read here that in a speed comparison it was 4 times faster.
Any more information or opinions on these settings, especially concerning security and performance?