PHPackages                             gueststream/sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gueststream/sdk

ActiveLibrary[API Development](/categories/api)

gueststream/sdk
===============

A PHP wrapper for Gueststream's API

052PHP

Since Feb 26Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/Gueststream-Inc/gueststream-php)[ Packagist](https://packagist.org/packages/gueststream/sdk)[ RSS](/packages/gueststream-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Helper Library for Gueststream VRP
======================================

[](#php-helper-library-for-gueststream-vrp)

### Installing via Composer

[](#installing-via-composer)

The recommended way to install the Gueststream VRP library is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add Gueststream SDK as a dependency
php composer.phar require gueststream/sdk dev-master@dev
```

or alternatively, you can add it directly to your `composer.json` file.

```
{
    "require": {
        "gueststream/sdk"
    }
}
```

Then install the libraries via Composer:

```
composer install
```

Finally, require Composer's autoloader in your PHP script:

```
require __DIR__.'/vendor/autoload.php';
```

### Usage

[](#usage)

To begin using this library, initialize the Gueststream VRP object with your API key:

```
$vrp = new \Gueststream\Vrp($apikey);
```

You can then use the VRP object to search for all units.

```
$vrp = new \Gueststream\Vrp($apikey);
$result = $vrp->search();
$results = $result['results'];
```

Quickstart Guide
----------------

[](#quickstart-guide)

### Getting Started

[](#getting-started)

This quickstart demonstrates a simple way to get started using the Gueststream VRP API. Following these steps, it should take you no more than 5-10 minutes to have a fully functional property search.

### Creating the object

[](#creating-the-object)

You simply include the library and create a new \\Gueststream\\Vrp object using your API Key:

```
require __DIR__.'/../vendor/autoload.php';

$vrp = new \Gueststream\Vrp('my-api-key');
```

### Loading a single Unit/Property

[](#loading-a-single-unitproperty)

Once you've created the object, you can use the object to load a unit as shown.

```
$result = $vrp->getUnit('unit_slug');
```

### Performing an Availability Search on all Properties

[](#performing-an-availability-search-on-all-properties)

To search, you use the same \\Gueststream\\Vrp object and search using arrival and departure keys. This can be accomplished with 3 lines of code:

```
$search['arrival'] = "03/21/2015";
$search['departure'] = "03/28/2015";
$result = $vrp->search($search);
```

Then you can process, interact and display the results however you wish. The code below simply shows the resulting unit slug and name for each available unit for the provided stay window.

```
$units = $result['results'];

foreach ($units as $a_unit) {
    echo $a_unit['Name'] . "\n";
    echo $a_unit['Slug'] . "\n";
}
```

Contributing
------------

[](#contributing)

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request from github

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f32ae1f0bf9491a59f474478c6344e37034667512769884f00d31c8d1568757?d=identicon)[druid628](/maintainers/druid628)

![](https://www.gravatar.com/avatar/7aea4da17736ad903e2235995e50fb1534472b3f79baa431e870a1ffdbb6610d?d=identicon)[devops-notifications@tnsinc.com](/maintainers/devops-notifications@tnsinc.com)

---

Top Contributors

[![jhoughtelin](https://avatars.githubusercontent.com/u/6137941?v=4)](https://github.com/jhoughtelin "jhoughtelin (4 commits)")

### Embed Badge

![Health badge](/badges/gueststream-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gueststream-sdk/health.svg)](https://phpackages.com/packages/gueststream-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
