machek / mmyql
Zend Framework 2 module for easy access to YQL (Yahoo! Query Language)
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:module
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
This package is not auto-updated.
Last update: 2024-04-22 09:32:57 UTC
README
Version 0.01 Created by Zdenek Machek during Yahoo! Hack Europe: London 2013
Introduction
This is simple module simplifying YQL - Yahoo! Query Language (http://developer.yahoo.com/yql/) usage
Requirements
- Zend Framework 2 (latest master)
Installation
- Add
"machek/mmyql": "dev-master"
to yourcomposer.json
file and runphp composer.phar update
. - Add
MMYQL
to yourconfig/application.config.php
file under themodules
key. - copy /vendor/machek/mmyql/configmmyql.local.php.dist to /config/autoload/mmyql.local.php
Usage
$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