Closed rizhenkov closed 6 years ago
Since PHP doesn't support C-bindings itself, I think that you should go with writing your own native php extension in C.
I really don't know if there is any sense in this extension in PHP. In any case, see here - simple (and ugly) implementation of td_json_client with example. I'm not even sure what I did it right. Just for fun =)
Or you could use my client, which is a native PHP implementation of MTProto.
You can use TDLib from PHP through phptdlib (already mentioned there) or PIF-TDPony extensions.
Please write little simple PHP example for easy starting up. Thank you!