SimplyRETS API client
-
master
-
1.0
The SimplyRETS API client is a PHP library which provides simplified access to
the SimplyRETS API and the data
it returns., (*1)
This plugin is currently in development with no stable release. Stay tuned for
an actual release soon., (*2)
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., (*3)
Installation
Include the bundle
Open a command console, enter your project directory and execute the following
command to download the latest stable release:, (*4)
$ 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., (*5)
Quick Start
To use the SimplyRETS API client, you will need your username and password., (*6)
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., (*7)
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:, (*8)
$ ./vendor/bin/phpunit
Or, if you already have phpunit installed globally this will do:, (*9)
$ phpunit
Thanks