Questions tagged [phrets]

PHRETS is a PHP client library for interacting with a RETS server to pull real estate listings, photos and other data made available from an MLS system.

PHRETS provides PHP developers a way to integrate RETS functionality directly within new or existing code by handling the following aspects for you:

  • Response parsing (XML, HTTP multipart, etc.)
  • Simple variables, arrays and objects returned to the developer
  • RETS communication (over HTTP)
  • HTTP Header management
  • Authentication
  • Session/Cookie management

Installation

The easiest way to get started is using Composer to install troydavisson/phrets:

{
    "require": {
        "troydavisson/phrets": "2.*"
    }
}

There is more information available about PHRETS at the project's Github site, including additional installation instructions and examples for common use.

55 questions
4
votes
2 answers

RETS IDX with PHRETS Setup Returning No Results

I'm in the middle of trying to learn how to setup a connection to a MIBOR IDX server using PHRETS and I've hit a wall. I have this very basic search query, just trying to get all results before I start trying to filter them, but my search is…
Colin
  • 2,428
  • 3
  • 33
  • 48
3
votes
2 answers

Is it possible to get all photo locations with properties when querying a RETS server using DMQL2?

I would like to download all property listings from a RETS server, including all photo URLs. I'm using DMQL2 and the PHRETS library. Properties and photo objects are stored in the RETS server in different tables. To get all the photos, I know I can…
Quinn Comendant
  • 9,686
  • 2
  • 32
  • 35
3
votes
1 answer

PHRETS GetObject() returns array, need to extract URL

I'm performing a for loop to iterate through MLS listings. I'm able to get every bit of information I need but I can't seem to figure out how to extract the URL from the array I get. Here's the array I get from my for loop: PHRETS\Models\Object…
TomG103
  • 311
  • 2
  • 26
2
votes
1 answer

PHRETS Error Message: Missing operator in lookup subquery

I am learning to use PHRETS to access IDX data for a real estate website. I have managed to connect and do simply queries using limits on price, character field content, etc. but I am getting an error message when I try to limit results by the…
bigbluesd
  • 23
  • 3
2
votes
2 answers

Sorting PHRETS results and optional arguments

I am using PHRETS to make a search query but I am having trouble finding documentation on sorting the results. Also, are there any other optional arguments besides "Limit"? $results =…
626
  • 1,159
  • 2
  • 16
  • 27
2
votes
2 answers

Fetching images binary data from the CRML

Trying to fetch :all (first :item) from the CRML Media Resource. Using Estately RETS repo. Here is my ruby example file: require 'rets' client = Rets::Client.new({ login_url: 'url', username: 'user', password: 'password', version:…
Gil Perez
  • 853
  • 10
  • 13
2
votes
2 answers

Anyone using the clouds to hold their RETS images.. Need more space any thoughts?

Is anyone using a cloud to provide access to their RETS MLS images so that the pubic can access at will w/o password? I currently have the images storing on my server for direct public access through my website, however need lots more space and just…
2
votes
1 answer

I am setting up a RETS MLS program using phrets and just wondered what the heck the disable follow location means?

I am setting up a RETS MLS program using phrets and just wondered what the heck the disable follow location means? $config = new \PHRETS\Configuration; $config->setLoginUrl('*****************'); $config->setUsername('****'); …
1
vote
1 answer

Need a little help figuring out how to append an array inside of a loop

I have a function that downloads photos from a server, using RETS. I want to take the path of the photos and store them in a JSON file for display on a carousel. The array function is inside a foreach loop, and it'll initialize but it'll only store…
rvor
  • 87
  • 1
  • 8
1
vote
2 answers

How to speed up this Rets feed import from MLS using Phrets (Bright MLS)

I am new to RETS importing so I developed this script:
Eric C
  • 37
  • 1
  • 11
1
vote
2 answers

SearchQuery() doesn't run (undefined method PHRETS\Session::SearchQuery())

I am trying to extract some basic details from the RETS server using PHRETS but been getting this error [*Uncaught Error: Call to undefined method PHRETS\Session::SearchQuery() in D:\Software\XAMPP\htdocs\PHRETS-master\RetsExtract.php:21 Stack…
AutoMate
  • 71
  • 9
1
vote
2 answers

Phrets is giving Invalid Type error using getobject

can any one help me how to get images of property using reso phrets. Below is my code which is executing : $rets = new \PHRETS\Session($config); $search = $rets->Search("Property","Residential","*", array( 'QueryType' =>…
Akshay
  • 31
  • 3
1
vote
2 answers

Dumping a RETS Data Feed

So I have a RETS data feed from Paragon I am trying to dump all this data into a CSV using phRETS library. I have tried many different ways to dump data from this RETS feed via dmql or libRETS and none of them are working. Here is my php code using…
hinsonan
  • 53
  • 8
1
vote
2 answers

PHP - Cant connect to RETS via PHRETS

I am trying to get all my MLS listing via PHP using PHRETS which I downloaded from here: https://github.com/dangodev/PHRETS-Example/blob/master/lib/phrets.php and I used this example to download my listings into a csv…
user979331
  • 11,039
  • 73
  • 223
  • 418
1
vote
2 answers

Getting property type CONDO from RETs

Trying to query the RETs database to only show CONDOs. There is a lookup field in the METADATA-LOOKUP_TYPE of TYPEOFPROP, but I'm unable to pull the value. Query…
user1765523
  • 127
  • 9
1
2 3 4