PHP code example of tizipso / beyondh

1. Go to this page and download the library: Download tizipso/beyondh 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/ */

    

tizipso / beyondh example snippets


composer 

php bin/hyperf.php vendor:publish tizipso/beyondh

# $config 不传值,将从配置文件中读取
$config = [
    'url' => '',
    'domain' => '',
    'app_key' => '',
    'channel_key' => '',
];

$beyondh = new BeyondhInterface($config);

$request = $beyondh->hotel->GetOrgs(PageIndex: 1);

    'beyondh' => [
        'handler' => [
            'class' => Monolog\Handler\StreamHandler::class,
            'constructor' => [
                'stream' => BASE_PATH . '/runtime/logs/beyondh.log',
                'level' => Monolog\Logger::DEBUG,
            ],
        ],
        'formatter' => [
            'class' => Monolog\Formatter\LineFormatter::class,
            'constructor' => [
                'format' => null,
                'dateFormat' => 'Y-m-d H:i:s',
                'allowInlineLineBreaks' => true,
            ],
        ],
    ],