vinceg / realtor.com
Realtor.com PHP API Wrapper
dev-master / 1.x-dev
2016-10-18 03:33 UTC
Requires
- php: >=5.4.0
- fabpot/goutte: *
- guzzlehttp/guzzle: *
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-10 11:34:46 UTC
README
Realtor.com Search
Note! This is no longer working as Realtor.com often changes their site. Since this library scans the website and grabs the data based on the elemenets in the source code this stopped working once they changed their website.
This is a simple PHP Wrapper for searching Realtor.com and viewing listing information. Please read the realtor.com Terms Of Use before using this library.
Requirements
depends on PHP 5.4+, Goutte 2.0+, Guzzle 4+.
Installation
Add vince/realtor.com` as a require dependency in your composer.json
file:
php composer.phar require vinceg/realtor.com:~1.0
Usage
use Realtor\RealtorClient; $client = new RealtorClient();
Make requests with a specific API call method:
// Run search by address $response = $client->searchByAddress('5400 Tujunga Ave');
// Run search by zip code $response = $client->getListingsByZip(90021, $perPage[10,20,50], $currentPage=1);
// Run search by city and state $response = $client->getListingsByCityAndState('Los Angeles', 'CA', $perPage[10,20,50], $currentPage=1);
// Get listing information $response = $client->getInformation('LISTING FULL URL');
- See example directory for example usage. The result will always be an array. refer to the RESULT file to see an example result.
License
MIT license.