Interface html for incoming calls and peer status

I want to create an html interface wich shows the status of the registered extensions in my pbx, and I want to take the id of an external caller and use this one on another server that will show the associated name when he calls (by using mysql). I created an clickToCall using PAMI(php asterisk manager interface) and I think that with PAMI and with PAGI(php asterisk gateway interface) it’s possible to create what I want. I can use php (not perfectly) and mysql (and html, css, javascript) and I correctly installed PAMI and PAGI, I only want some exemples on how to use it and how to use AsyncAGI client, also some link of detailed explications.
Thank you

P.S Sorry for the bad english