PHPackages                             rana-tuhin/hostaway-php-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. rana-tuhin/hostaway-php-sdk

ActiveLibrary[API Development](/categories/api)

rana-tuhin/hostaway-php-sdk
===========================

A fully-featured PHP SDK for the Hostaway API with all available endpoints and resources.

v1.0.0(8mo ago)16232MITPHPPHP &gt;=8.0CI passing

Since Nov 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/RanaTuhin/Hostaway-PHP-SDK)[ Packagist](https://packagist.org/packages/rana-tuhin/hostaway-php-sdk)[ RSS](/packages/rana-tuhin-hostaway-php-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

🏨 Hostaway PHP SDK
==================

[](#-hostaway-php-sdk)

A modern PHP SDK for the [Hostaway API](https://api.hostaway.com/documentation), designed to simplify integration with Hostaway’s property management system — including reservations, listings, messages, guests, and more.

---

🚀 Features
----------

[](#-features)

- Clean, fluent API for all Hostaway endpoints
- Built-in authentication with API Key
- Full Laravel support (auto-discovery, facade, and config)
- Pest-powered testing
- PSR-4 compliant and publishable config

---

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require rana-tuhin/hostaway-php-sdk
```

---

⚙️ Configuration
----------------

[](#️-configuration)

After installation, publish the configuration file:

```
php artisan vendor:publish --tag=hostaway-config
```

Then, set your credentials in `.env`:

```
HOSTAWAY_API_KEY=your-hostaway-api-key
HOSTAWAY_ACCOUNT_ID=your-account-id
HOSTAWAY_BASE_URL=https://api.hostaway.com/v1/
```

Your `config/hostaway.php` will look like:

```
return [
    'api_key' => env('HOSTAWAY_API_KEY'),
    'account_id' => env('HOSTAWAY_ACCOUNT_ID'),
    'base_url' => env('HOSTAWAY_BASE_URL', 'https://api.hostaway.com/v1/'),
];
```

### Example Usage in Laravel

[](#example-usage-in-laravel)

```
use Hostaway;

$listings = Hostaway::listings()->getAll();

$reservations = Hostaway::reservations()->getAll();

Hostaway::messages()->send([
    'reservationId' => 1001,
    'content' => 'Welcome to our property!',
]);
```

---

🧠 Usage (Standalone PHP)
------------------------

[](#-usage-standalone-php)

You can use the client independently from Laravel too:

```
use RanaTuhin\Hostaway\HostawayClient;

$client = new HostawayClient([
    'api_key' => 'your-api-key',
    'account_id' => 'your-account-id',
]);

$listings = $client->listings()->getAll();
$reservation = $client->reservations()->find(12345);
```

Example:

```
$listings = $client->listings()->getAll();
$reservation = $client->reservations()->create([]);
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance77

Regular maintenance activity

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.5% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/570b7136f52efe601bea660195f4d7ac7b342c0c741f911f2f6b1affedd98b39?d=identicon)[ranatuhin2](/maintainers/ranatuhin2)

---

Top Contributors

[![RanaTuhin](https://avatars.githubusercontent.com/u/41468836?v=4)](https://github.com/RanaTuhin "RanaTuhin (373 commits)")[![RanaMondal703](https://avatars.githubusercontent.com/u/205737336?v=4)](https://github.com/RanaMondal703 "RanaMondal703 (2 commits)")

---

Tags

hostawayphp

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rana-tuhin-hostaway-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/rana-tuhin-hostaway-php-sdk/health.svg)](https://phpackages.com/packages/rana-tuhin-hostaway-php-sdk)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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