Skip to content

nerdsrescueme/simply-rets-api

Repository files navigation

SimplyRETS API client

  • Build Status master
  • Build Status 1.0

The SimplyRETS API client is a PHP library which provides simplified access to the SimplyRETS API and the data it returns.

This plugin is currently in development with no stable release. Stay tuned for an actual release soon.

Requirements

Documentation

For information on how to utilize the various components provided by this library please read the documentation. Full API documentation can also be found in the docs/api folder.

Installation

Include the bundle

Open a command console, enter your project directory and execute the following command to download the latest stable release:

$ composer require nrm/simply-rets-client "~1.0"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Quick Start

To use the SimplyRETS API client, you will need your username and password.

use NRM\SimplyRetsClient\SimplyRetsClient;
use NRM\SimplyRetsClient\PropertiesParameterSet as Params;

$username = '<username>';
$password = '<password>';

$client = new SimplyRetsClient($username, $password);
$params = Params::create()->addType(Params::TYPE_RENTAL);
$properties = $client->getProperties($params);

Contributing

If there is anything you believe to be missing or an error, please send a pull request with your changes. I'd really appreciate the help! Please make sure to include working unit tests, and that any changes you make have been tested and do not break current features.

Testing

We hope to remain at 100% unit test coverage for the entire lifespan of this project; lofty goal, for sure, but doable. To run the test suite first install the library then run the following command from the root folder of the project:

$ ./vendor/bin/phpunit

Or, if you already have phpunit installed globally this will do:

$ phpunit

Thanks

About

SimplyRETS API PHP client library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published