I need to send this curl using PHP but i cannot find anywhere how to use --form. Here is the curl code I want to execute.
curl --location --request POST 'https://link.xyz/auto/api' \
--header 'X-Api-Key: YOUR-API-KEY-HERE' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4086.0 Safari/537.36' \
--form 'email=EMAIL-HERE' \
--form 'password=PASSWORD-HERE' \
--form 'key=KEY-HERE'