travoltron / zillow by travoltron
forked from yajra/zillow

Laravel Wrapper for Zillow API
24
0
2
Package Data
Maintainer Username: travoltron
Maintainer Contact: aqangeles@gmail.com (Arjay Angeles)
Package Create Date: 2016-07-26
Package Last Update: 2016-08-01
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-18 03:02:34
Package Statistics
Total Downloads: 24
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Zillow, Laravel Wrapper

A simple Laravel Wrapper for the Zillow API services.

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Requirements

depends on PHP 5.4+, Goutte 2.0+, Guzzle 4+.

Installation

Add yajra/zillow as a require dependency in your composer.json file:

Laravel 4

composer require yajra/zillow:~1.0

Laravel 5

composer require yajra/zillow:~2.0

Configuration

In your config/app.php add yajra\Zillow\ServiceProvider to the end of the providers array

'providers' => array(
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'yajra\Zillow\ServiceProvider',
),

At the end of config/app.php add Zillow => yajra\Zillow\Facade to the aliases array

'aliases' => array(
    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'Zillow'    => 'yajra\Zillow\Facade',
),

Lastly, publish the config file:

Laravel 4

$ php artisan config:publish yajra/zillow

Laravel 5

$ php artisan vendor:publish

Then set your Zillow Web Services ID (ZWSID) by updating the zws-id value in

Laravel 4 app/config/packages/yajra/zillow/config.php

Laravel 5 config/zillow.php

###Usage

Make requests with a specific API call method:

$params = [
	'address' => '5400 Tujunga Ave',
	'citystatezip' => 'North Hollywood, CA 91601'
];
// Run GetSearchResults
$response = Zillow::getSearchResults($params);

Any Zillow API call will work. Valid callbacks are:

  • getZestimate
  • getSearchResults
  • getChart
  • getComps
  • getDeepComps
  • getDeepSearchResults
  • getUpdatedPropertyDetails
  • getDemographics
  • getRegionChildren
  • getRegionChart
  • getRateSummary
  • getMonthlyPayments
  • calculateMonthlyPaymentsAdvanced
  • calculateAffordability
  • calculateRefinance
  • calculateAdjustableMortgage
  • calculateMortgageTerms
  • calculateDiscountPoints
  • calculateBiWeeklyPayment
  • calculateNoCostVsTraditional
  • calculateTaxSavings
  • calculateFixedVsAdjustableRate
  • calculateInterstOnlyVsTraditional
  • calculateHELOC

License

MIT license.

Links

This package was inspired by Zillow, PHP Wrapper