2017 © Pedro PelĂĄez
 

package property-api-php-client

A PHP library for Eurolink's Property API

image

eurolink/property-api-php-client

A PHP library for Eurolink's Property API

  • Wednesday, June 20, 2018
  • by eurolink
  • Repository
  • 1 Watchers
  • 0 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 19 % Grown

The README.md

Property API Client

A PHP client for Eurolink's Property API., (*1)

Setup

composer require eurolink/property-api-php-client

Usage

GET Properties

 '~~INSERT_ACCESS_TOKEN~~',
    ]);

    // additional GET parameters can be passed in (see example below)
    $collection = $client->getProperties([
        'size' => 5,
    ]);

    // returns total number of properties matching search criteria
    var_dump($collection->getTotal());

    // returns number of properties returned in this collection
    var_dump($collection->getCount());

    // returns array of objects
    var_dump($collection->getRows());

    // returns array of '\PropertyAPI\Property'
    var_dump($collection->getParsedRows());
?>

You can pass any of the allowed parameters into the “getProperties()” method. Please refer to the main Property API documentation for the full list., (*2)

<?php
    $collection = $client->getProperties([
        'size' => 5,
        'town' => 'London',
    ]);
?>

GET Property

 '~~INSERT_ACCESS_TOKEN~~',
    ]);

    // gets property by property ID
    $property = $client->getProperty(123456);

    // verify that property have successfully been returned
    var_dump($property->isValid());

    // test request by displaying Property ID (UUID)
    var_dump($property->getPropertyID());
?>

Testing

Automatic

Paste your API Access Token into the root .env file. See .env.example., (*3)

./vendor/bin/phpunit tests/

Manual

Paste your API Access Token into the root .env file. See .env.example., (*4)

php example/simple.php
// or
php example/complex.php

The Versions

20/06 2018

dev-master

9999999-dev

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

20/06 2018

v1.0.10

1.0.10.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

15/05 2018

v1.0.9

1.0.9.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

14/05 2018

v1.0.8

1.0.8.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

14/05 2018

v1.0.6

1.0.6.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

14/05 2018

v1.0.7

1.0.7.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

11/05 2018

v1.0.5

1.0.5.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

11/05 2018

v1.0.4

1.0.4.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

11/05 2018

v1.0.3

1.0.3.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

11/05 2018

v1.0.2

1.0.2.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

02/05 2018

v1.0.1

1.0.1.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink

24/04 2018

v1.0.0

1.0.0.0

A PHP library for Eurolink's Property API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar eurolink

property eurolink