Looking over curl_setopt and all the options [CURLOPT_XXX] there, you can correlate from the curl(1) - Linux man page documentation and look over the "Options" section and detail of each parameter there to determine what relates to any specific command line option if applicable you may need to utilize.
For example, where CURLOPT_POSTFIELDS maps onto --data on the CLI, you can see per the curl(1) - Linux man page...
-d/--data <data>
(HTTP) Sends the specified data in a POST request to the HTTP server...
...and then from curl_setopt
CURLOPT_POSTFIELDS
The full data to post in a HTTP "POST" operation. ...
For sending POST requests to the HTTP server using curl command line you correlate the two based on the "POST" for the 'request' CLI and 'operation' from the HTTP server.
So based on what type of data or command line options you are working with whatever logic you are building with the curl, PHP, and HTTP operations, the documentation required to map those out already exists in those two sources which will help.
I cannot find an already existing mapping document/resource with this correlation, but I was able to find those existing documents/resources to use for building such a correlated mapped list.
So when you ask is there any documentation that maps the CLI flags onto the the CURLOPT_ constants*... Yes there is and I provided you a couple resources and a small example.
Tip: Using Ctrl+F to search for keywords on each resource per whatever keyword is applicable to the HTTP operation or curl request you are performing\researching may be useful.
Supporting Resources