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
1
vote
1 answer

How To Install PHRets 2.0 Without Composer?

After struggling with my webhost for almost a month, they've finally just told me they don't support Composer. I still want to use PHRets. Is it possible to install and/or use PHRets without Composer?
DiMono
  • 3,308
  • 2
  • 19
  • 40
1
vote
3 answers

Nested Foreach loop taking too much time

I am using the Nested Foreach loop to store the data in the mysql. But its taking too much processing time. How i can reduce the maximum execution time. foreach ($results as $r) { mysqli_query($con,"insert into commercial…
junkk rr
  • 55
  • 15
1
vote
1 answer

How to find image encryption algorithm

How i can decrypt the encrypted image. The image descryption is showing like. ÿØÿà�JFIF��–�–��ÿþ�.Handmade Software, Inc. Image Alchemy v1.11 ÿÛ�„� #!!!$'$ & ! ÿÀ�àg!�ÿÄ¢���������� �������…
junkk rr
  • 55
  • 15
1
vote
1 answer

Issue With RETS Data Fetching Feed in PHP

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 me the Requested Class not found Error. Please help to solve this Error. My Code is:…
junkk rr
  • 55
  • 15
1
vote
0 answers

Not getting Photo in PHRETS

I am using PHREST method for getting photo from MLS Server. I am not able to get images of property for that I am using below function. if ($rets->NumRows() > 0) { while ($record = $rets->FetchRow($search)) { $photos =…
1
vote
1 answer

PHRETS Works Locally But Times Out On Web Server

I installed PHRETS with Composer and have been able to print information using CMD terminal and following the docs. I tried uploading all the files to my web server, but the page times out. My error log shows the following: PHP Fatal error: …
DERNERSERFT
  • 110
  • 10
1
vote
3 answers

Unable to connect RETS server with PHRETS

Can any one tell me what are the mandatory fields to connect using PHRETS? I used : $config->setLoginUrl($rets_login_url) ->setUsername($rets_username) ->setPassword(getenv($rets_password)) ->setRetsVersion('1.7.2');
Smart Dev
  • 11
  • 3
1
vote
3 answers

Is there a way to use MLS Api in php

I want to integrate the MLS in my website which is built in php. Is there any services that could help me out. I want to integrate it in my custom plugin, so that whenever a user searches on my website it pulls the data using MLS api. I have done…
TBI
  • 2,789
  • 1
  • 17
  • 21
1
vote
1 answer

Including PHRETS into a Symfony2 project

How can I include this library: https://github.com/troydavisson/PHRETS into a symfony project? This is my composer.json: { "name": "marysalcedo/reactive-pandora", "license": "proprietary", "type": "project", "autoload": { …
danielrvt
  • 10,177
  • 20
  • 80
  • 121
1
vote
1 answer

PHRets searchquery returns nothing

I am using PHRets to fetch mls data. But it is fetching nothing. I am fetching data from MLXchange site. I used the Retsconnector(Desktop application) and its fetching data. I used same query in PHRets but it is not working. Here below is my code.…
0
votes
1 answer

How to fetch propertie's image URLs using php rets server?

I want to fetch all the image url related to a particular property, but $rets->GetObject function is not returning the image url. Please help me to find where i am wrong? I want to fetch the image URLs for the MLS property number = W******. But it…
0
votes
1 answer

rets api, Search function giving DMQL: Invalid Lookup criteria for field 'Change_Type'

I am working on RETS API https://github.com/troydavisson/PHRETS I am trying to search some parameters but getting error. $search = $rets->Search("HISTORY", $class, "Change_Type=*", array('Format' => 'COMPACT-DECODED', 'Count' => 1, 'Offset' =>…
M Ismail
  • 43
  • 1
  • 9
0
votes
1 answer

Could not find RETS data in TREB VOW Data Access

This is connection file date_default_timezone_set("Canada/Eastern"); require_once("vendor/autoload.php"); $config = new \PHRETS\Configuration; $config->setLoginUrl('http://retsau.torontomls.net:6103/rets-treb3pv/server/login') …
0
votes
1 answer

I trying to view photo from a RETS with PHRETS

this my codes $objects = $rets->GetObject('Property','Photo','262394501','*',0); foreach ($objects as $object) { $contentType=$object->GetcontentType(); $base64 = base64_encode($object->Data()); echo "
0
votes
0 answers

Not receiving new listings from CREA DDF

We are now working on a new project integrating one of our client's website with CREA DDF. We are now fetching and updating/creating listings based on the list of updated listings from DDF API. However, at some point, we stopped getting any new…
Shurik Agulyansky
  • 2,607
  • 2
  • 34
  • 76