LE API server documentation

Hi,
I would like to write a custom PHP LE client, but I can’t find LE API server (https://acme-v01.api.letsencrypt.org/directory) documentation.

I tried to google it but only found server API flow and client documentation. (LE and certbot)

Can someone point me to the right documentation please?

Let’s Encrypt uses protocol called ACME and they are in progress of implementing standards-based ACME v2.

This file should help you: https://github.com/letsencrypt/boulder/blob/release/docs/acme-divergences.md