vgomes / daftapi
Simple library to easily use daft.ie API o your project
Requires
- php: >=5.5.9
- fabpot/goutte: *
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-04-24 22:43:27 UTC
README
Package to use Daft.ie API easily from any PHP project.
Install
Via Composer
$ composer require vgomes/daftapi
You'll need also PHP SOAP extension installed and configured in your server.
Usage
In order to use this, you'll need a Daft api key. Get in touch with them in order to get one.
$api = new DaftAPI('your_api_key_here'); $propsForSale = $api->sale();
By default, Daft API doesn't cover overseas properties, so that functionality is achieved through some HTML parsing. Support is added to use in a similar way to the API.
$overseas = new DaftOverseas('_your_overseas_key_'); $properties = $overseas->properties([ 'country' => DaftOverseas::SPAIN, 'max_price' => 500000, 'limit' => 5 ])); // 5 properties on Spain with price under 500k $property = $overseas->property(_your_property_id_);
Provided methods to get a list of properties, information about a particular property and get the pictures for a particular ad. I couldn't fnid information on more specific params to refine searches appart of the included ones. So feel free to contact me to add support for more if you have information about them.
Documentation
Check oficial Daft.ie API docs to get information on what parameters you can use on requests and the type of results you can get. You can also check some code examples.
Change log
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email victor.j.gomes@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.