Php_googlepagerank is a project mainly written in PHP, it's free.
Old Google PageRank calculator. Hope it still works