Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP library for convenient YQL querying
PHP
tree: ac67f920a0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Exception.php
Response.php
YQL.php
license.txt
readme.txt

readme.txt

Welcome to YQL PHP Library
==========================

YQL PHP Library is alibrary for convenient executions of Yahoo Query Language queries.

Requirements
------------

YQL PHP Library requires PHP 5.3. 

Installation
------------

Just copy the files into your lib folder and require YQL.php;


Quick start
---------------

Static style:
    $response = YQL::query('select * from internet');
    
Object style:
    $yql = new YQL;
    $response = $yql->execute('select * from internet');

or:
    $yql = new YQL;
    $ylq->setQuery('select * from internet');
    $response = $yql->execute();

Get the count of result elements:
    $response->count or $response->getCount()

Get the result elements:
    $response->results or $response->getResults()
Something went wrong with that request. Please try again.