GithubHelp home page GithubHelp logo

daftapi's Introduction

DaftAPI

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 [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

daftapi's People

Contributors

vgomes avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.