Get content ID from a Magnet Link by PHP

Greetings to all.

As much as I’m looking for I find no way to get the content ID from infohash a Magnet Link by PHP.

magnet:?xt=urn:btih:IJBDPDSBT4QZLBIJ6NX7LITSZHZQ7F5I

to

acestream://2c81a5bdfc2ab10e617d2a872e5ee70b28a49ffc

Could you help me?

Thank you.

Any Help here… please???