2017 © Pedro Peláez
 

library realworks

image

soneritics/realworks

  • Thursday, August 2, 2018
  • by soneritics
  • Repository
  • 2 Watchers
  • 3 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Realworks

Build Status Coverage Status License, (*1)

by * @Soneritics - Jordi Jolink, (*2)

Introduction

This script connects to the Realworks Real Estate service. It provides easy parsing methods for parsing the XML data into PHP objects, providing easy overrides using IOC (dependency injection)., (*3)

Conditions

The following conditions have been set by Realworks. As an ISP you will have to sign an agreement in which you agree to these. Just for the record, the list of the most important items is shown below as well. * The file may only be downloaded once per natural day (24 hours). * The new file should be downloaded after 8:30AM. * The file contains all data, changes and cancellations until the day before. * The objects may only be used on the broker's website. * Objects are in the XML until 7 days after cancellation. * Files and media may not be hot linked. Files should be downloaded to your own server. * Maximum size of the images is 1600x100 pixels., (*4)

Minimum Requirements

  • PHP 5.6+

Examples

Minimal example, when you have downloaded and extracted the ZIP file yourself and only want the XML to be parsed:, (*5)

$type = new \Realworks\RealEstateType\Wonen;
$xmlFilename = __DIR__ . '/../test/Assets/wonen.xml';

// Parse the file
$xmlFile = new \Realworks\File\XMLFile($xmlFilename);
$parser = (new \Realworks\Parser\ParserFactory)->build($type);

$result = $parser->parse($xmlFile);
print_r($result);

This script can also guide you through the whole process, including: * Download the file * Validate the zipped content * Unpack the zipped content * Validate the XML file against the XSD * Process the XML file The example for this is included as FullExample.php., (*6)

The Versions

02/08 2018

dev-development

dev-development

  Sources   Download

02/08 2018

dev-legacy-code

dev-legacy-code

  Sources   Download

16/09 2016

dev-master

9999999-dev https://github.com/Soneritics/Realworks

Realworks real estate connector

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires