The 3-phase PLL sketch is here. You will almost certainly need to compile it yourself, having chosen the configuration options to suit your application. If you download the .zip file, you will also have the supporting documentation.
I’m afraid I can’t help you with the ESP8266 - I know nothing about that.
Please don’t link to files on external sites. Unlike others, we want you to attach your screenshots, log files, etc to your post. If the external site goes away, the material is likely to be lost forever. If that happens, when someone reads your post, your question and our answer will have little or no value.
If you need to post more than one attachment, tell us you have more information to post, and we’ll change your user account settings to enable you to do so.