PHPackages                             gueststream/hapi - 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. [Payment Processing](/categories/payments)
4. /
5. gueststream/hapi

ActiveLibrary[Payment Processing](/categories/payments)

gueststream/hapi
================

HomeAway Payment Island Alternate Tokenization service API wrapper

0.1.0(9y ago)35552[1 issues](https://github.com/Gueststream-Inc/hapi/issues)MITPHPPHP &gt;=5.4.0

Since Dec 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Gueststream-Inc/hapi)[ Packagist](https://packagist.org/packages/gueststream/hapi)[ Docs](https://github.com/Gueststream-Inc/hapi)[ RSS](/packages/gueststream-hapi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

HomeAway Payment Island API Wrapper
===================================

[](#homeaway-payment-island-api-wrapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d3dfe985bae54ca49fd2243e5caa81992646b6fcfd4678971526e9d2730b1e59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f677565737473747265616d2f686170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gueststream/hapi)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5dca3735f892986e10d89fafe6b9745d7966691e3ac2e8174a9b83646347d220/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f477565737473747265616d2d496e632f686170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Gueststream-Inc/hapi)[![Coverage Status](https://camo.githubusercontent.com/8ce8839f2e86bd71c794de8414a2bb69b909e351c3e9eb7dd5951c1a565dba5c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f477565737473747265616d2d496e632f686170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Gueststream-Inc/hapi/code-structure)[![Quality Score](https://camo.githubusercontent.com/8dcf3aac220becfd65d08c6227456f259720a350432593dd29d173c036e8b4ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f477565737473747265616d2d496e632f686170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Gueststream-Inc/hapi)[![Total Downloads](https://camo.githubusercontent.com/4bed0ab73dda82be75f2f20823601b2408bb647738399d18b02a9cb043c5756f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677565737473747265616d2f686170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gueststream/hapi)

This is a PHP library to make it easy to implement the HAPI HAT (HomeAway Payment Island Alternate Tokenization) service provided by HomeAway to remove HomeAway and any other data or service provider from the PCI scope except the service that is actively accepting credit card data from the guest. More information can be found on the [HAPI Reference Page](https://beta.escapia.com/HAPI_Reference/index.html).

HAPI ONLY supports TLS v1.2 SSL encryption and this library expects PHP to auto-negotiate this properly. The Travis-CI tests for HHVM failed to do this properly so HHVM tests have been removed.

Install
-------

[](#install)

Via Composer

```
$ composer require gueststream/hapi
```

Usage
-----

[](#usage)

Invoke the Tokenizer using the HAT Client ID and API Key provided by HomeAway, then pass a credit card number to the `tokenize()` method to request and receive the token for that credit card number.

```
$hatClientId = "a7209c11-32e5-4c55-bff5-617607d85e8f";
$hatApiKey = "c5de60cfccd04f84a502bfb9c63d2f28";
$creditCardNumber = "4111111111111111";

$tokenizer = new Gueststream\HomeAway\Tokenizer($hatClientId, $hatApiKey);
$tokenizedCardNumber = $tokenizer->tokenize($creditCardNumber);
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3423d ago

### 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 (15 commits)")

---

Tags

hapigueststreamHATHomeAway

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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