Open Grapth implementation for PHP