2017 © Pedro Peláez
 

library list-once

image

thegallagher/list-once

  • Thursday, September 1, 2016
  • by thegallagher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ListOnce API Wrapper for PHP

This library should be considered alpha and could change at any time. It is recommended that you specify a commit when using composer., (*1)

Installation

composer require thegallagher/list-once:dev-master@dev

Usage

getListing($listingId);
echo $listing->listing_id;
echo $listing->headline;
echo $listing->description;

// Search listings
$listings = $listOnce->searchListings([
    'suburb' => 'Sydney',
    'property_type' => 'residential',
    'listing_type' => 'sale',
    'max_price' => 900000
]);
foreach ($listings as $listing) {
    echo $listing->listing_id;
    echo $listing->headline;
    echo $listing->description;
}

// And much more. See src/Provider/ListOnce.php
?>

Todo

  • Cached provider does not work. It uses a previous version of the library
  • Finish implemeting the Message class
  • Provider interface
  • Add methods to entities which can grab related entities and pages

License

The library is open-sourced software licensed under the MIT license., (*2)

The Versions