Maybe it's not the answer you need, but -if you have an ftp- you can follow these steps:
1) create a php script that receive (via GET) the url you want to check
2) the script passes this url to your class and then echoes the page rank in a simple html div
3) upload this script in your ftp
4) create a zp template that goes to the script and catch the content of the div