yajra/zillow

Laravel Wrapper for Zillow API

Downloads

387

Stars

15

Version

v2.0.5

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:

composer require yajra/zillow:~3.0

Configuration (Optional on Laravel 5.5)

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

'providers' => [
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Yajra\Zillow\ZillowServiceProvider',
],

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

'aliases' => [
    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'Zillow'    => 'Yajra\Zillow\Facades\Zillow',
],

Lastly, publish the config file (Optional):

$ php artisan vendor:publish

Then set your Zillow Web Services ID (ZWSID) by updating the zws-id value in config/zillow.php.

You can also set ZWSID key on your env file and skip the publishing of config.

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:

Home Valuation API

Property Details API

Neighborhood Data

Other API

  • getDemographics
  • 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