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
0
votes
2 answers

Handling large data in php

I am trying to insert large data into db after mls property search(PHRETS) . The result object have around 4500 to 5000 records each having 450-475 keys, it gives "HTTP Error 500 Internal server error" while inserting data into db after…
dEL
  • 482
  • 1
  • 6
  • 23
0
votes
2 answers

PHRETS 2.0 cannot get image

I am currently working something that need to get the data from RETS, where I can extract information from RETS but cannot get the image. I tried to use the following code: $photos = $rets->GetObject("Property", "Photo", $record['L_ListingID'], "*",…
0
votes
2 answers

Missing close parenthesis on subquery PHRETS

I am getting Missing close parenthesis on subquery error while trying to get listings using RETS https://github.com/troydavisson/PHRETS/issues/104 Here is the code query I am passing $results = $rets->Search('Property', '1',…
Hitesh Chandwani
  • 159
  • 1
  • 1
  • 14
0
votes
2 answers

Connecting with multiple resources in PHRETS

I have to retrieve the data from multiple resources by using the Rets server. Is there any way to do so? For example, I have resources and classes like: Property(Resource), Listing(Class) Media(Resource), Media(Class) Some data should be fetched…
Suba
  • 1
  • 2
0
votes
2 answers

How to download STANDARD-XML metadata from RETS using PHRETS

Is there any solution to download STANDARD-XML metadata from RETS using PHRETS? Currently am able to extract each class metadata as an array using PHRETS function GetMetadataTable and combining & converting to XML format. But then recently I found…
V-T
  • 756
  • 2
  • 9
  • 22
0
votes
1 answer

RETS DMQL2 Query Issues

I am having trouble getting data when I use the system name "proptype". Here is my code for the DMQL2 Query (Using PHRets): $search = $rets->SearchQuery( "Property", // Resource tt_res, // Class …
user3259138
  • 331
  • 2
  • 6
  • 19
0
votes
1 answer

How to install PHRETS 2.0?

What are all the step by step process to install phrets in ubuntu? I tried the following, but then unable to run phrets First I got installed composer. Then I ran composer require troydavisson/phrets Now I have two files composer.json and…
V-T
  • 756
  • 2
  • 9
  • 22
0
votes
2 answers

getting empty response from RETS server using PHrets

I got connected to RETS Server and i am able to get all metadata using functions in PHrets library like GetMetadataResources,GetMetadataClasses,and all feilds in each class,but i am unable to get data from that server using SearchQuery,I tried in…
0
votes
1 answer

PHrets - Using PHP to create mysql tables from rets - Script

I found this piece of code online which will connect to the rets feed and create mysql tables.
Walking
  • 467
  • 1
  • 7
  • 23
-2
votes
1 answer

PHP Fatal error:Uncaught exception 'PHRETS\Exceptions\RETSException' with message 'Missing open parenthesis in subquery

I am using the PHRETS PHP library to fetch the RETS data from the rets API. I have and issue with getting the Data. It's giving "PHP Fatal error: Uncaught exception 'PHRETS\Exceptions\RETSException' with message 'Missing open parenthesis in…
Bhunesh Satpada
  • 770
  • 1
  • 6
  • 19
1 2 3
4