A simple, free, open source PHP library for using RETS.
PHP + RETS = PHRETS
PHRETS provides PHP developers a way to integrate RETS functionality directly within new or existing code. A standard class of functions is made available to developers to connect and interact with a server much like they would with other APIs.
PHRETS handles the following aspects of RETS communication for you:
- Response parsing (for other non-XML responses such as HTTP multipart)
- XML Parsing
- Simple variables and arrays returned to the developer
- RETS communication (over HTTP)
- HTTP Header management
- Authentication
- Session/Cookie management
- POST Support for Searches
Example:
$rets = new phRETS;
$options = array("UsePost" => 1);
$results = $rets->Search("PROPERTY", "RES", "(LISTSTATUS=|ACT)", $options);
Install via Composer - Add nathanklick/phrets to your composer.json
file, run composer update
and you're set.
Manual Download - The source code for PHRETS is available on GitHub
PHRETS is maintained in a public Git repository on GitHub. Issue submissions and pull requests are encouraged if you run into issues or if you have fixes or changes to contribute.
View our GitHub Wiki for documentation, code snippets, examples, tips & tricks and more.