nathanklick / phrets
RETS library in PHP
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2024-12-21 17:12:07 UTC
README
PHRETS
A simple, free, open source PHP library for using RETS.
PHP + RETS = PHRETS
Introduction
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
POST Support for Searches
Example:
$rets = new phRETS;
$options = array("UsePost" => 1);
$results = $rets->Search("PROPERTY", "RES", "(LISTSTATUS=|ACT)", $options);
Download
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
Contribute
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.
Documentation
View our GitHub Wiki for documentation, code snippets, examples, tips & tricks and more.