Click to Dial PHP

Hello,
Can anyone please share a working php script that will give to ability to use click to dial via Http custom url?

Thank you very much.