PHP code example of gueststream / hapi

1. Go to this page and download the library: Download gueststream/hapi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gueststream / hapi example snippets

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

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