nathanklick/phrets

There is no license information available for the latest version (1.0.4) of this package.

RETS library in PHP

1.0.4 2014-09-09 17:20 UTC

README

Latest Stable Version Total Downloads Latest Unstable Version License

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.