2017 © Pedro Peláez
 

library pillow

Zillow PHP client

image

verticaltab/pillow

Zillow PHP client

  • Friday, October 7, 2016
  • by verticaltab
  • Repository
  • 8 Watchers
  • 22 Stars
  • 5,489 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

Pillow - Zillow PHP client

This library provides a PHP interface for the Zillow API., (*1)

See: zillow.com for more information., (*2)

Currently, only these API calls are supported:
http://www.zillow.com/howto/api/GetSearchResults.htm
http://www.zillow.com/howto/api/GetChart.htm
http://www.zillow.com/howto/api/GetComps.htm, (*3)

If there is one you'd really like to see implemented, you can create an issue and/or fork, implement, and submit a pull request., (*4)

Requirements

PHP >= 5.3, (*5)

Installation

The preferred method of installation is composer. In you project root (not web root), create a minimum composer.json file:, (*6)

{
    "require": {
        "VerticalTab/Pillow": "x.x.x"
    }
}

Replace "x.x.x" above with the tag number you want to use. Note: see VeriticalTab/Pillow Packagist page for latest release information., (*7)

Next, get composer and use it to install (again, in your project root), (*8)

$ wget http://getcomposer.org/composer.phar
$ php composer.phar install

This will put the library into your vendors directory., (*9)

Updating

To update after installation, edit the "require" section in composer.json. Then update:, (*10)

$ php composer.phar update

Examples

File: simple.php, (*11)

<?php
require 'vendor/autoload.php';

use VerticalTab\Pillow\Service;

$key = 'your zillow api key';
$s = new Service($key);
$results = $s->getSearchResults('2114 Bigelow Ave', '98109');
$property = $results->current();

"Results:" . PHP_EOL;
echo "zpid      : " . $property->zpid . PHP_EOL;
echo "city      : " . $property->city . PHP_EOL;

Run simple example, (*12)

$ php simple.php

File: chart.php, (*13)

<?php
require 'vendor/autoload.php';

use VerticalTab\Pillow\Service;

$key = 'your zillow api key';
$s = new Service($key);
$results = $s->getSearchResults('2114 Bigelow Ave', '98109');
$property = $results->current();

echo "chart url : " . $property->chart->url . PHP_EOL;

Run chart example:, (*14)

$ php chart.php

File: comps.php, (*15)

<?php
require 'vendor/autoload.php';

use VerticalTab\Pillow\Service;

$key = 'your zillow api key';
$s = new Service($key);
$results = $s->getSearchResults('2114 Bigelow Ave', '98109');
$property = $results->current();

foreach($property->comps as $i => $comp) {
  echo "\tcomp      : " . $i . PHP_EOL;
  echo "\tzpid      : " . $comp->zpid . PHP_EOL;
  echo "\tzestimate : " . $comp->zestimate->amount . PHP_EOL;
  echo PHP_EOL;
}

Run comps example:, (*16)

$ php comps.php

The Versions

07/10 2016

dev-master

9999999-dev https://github.com/VerticalTab/Pillow

Zillow PHP client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Rob Apodaca

16/12 2011

0.1.1

0.1.1.0 https://github.com/VerticalTab/Pillow

Zillow PHP client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Rob Apodaca

16/12 2011

0.1.0

0.1.0.0 https://github.com/VerticalTab/Pillow

Zillow PHP client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Rob Apodaca