Version 0.01 Created by Zdenek Machek during Yahoo! Hack Europe: London 2013
This is simple module simplifying YQL - Yahoo! Query Language (http://developer.yahoo.com/yql/) usage
- Zend Framework 2 (latest master)
- Add
"machek/mmyql": "dev-master"to yourcomposer.jsonfile and runphp composer.phar update. - Add
MMYQLto yourconfig/application.config.phpfile under themoduleskey. - copy /vendor/machek/mmyql/configmmyql.local.php.dist to /config/autoload/mmyql.local.php
$select = "latitude, longitude, radius";
$from = "geo.placefinder";
$where = "text=\"{$query}\"";
$response = $this->getServiceLocator()->get('serviceYQL')->executeQuery($select, $from, $where);
$responseArray = json_decode($response);
$resultArray = array('coordinates' => array('latitude' => $result->latitude, 'longitude' => $result->longitude, 'radius' => $result->radius));or check this project where we used it: https://github.com/Gisleburt/yahoohack