PHP code example of lihq1403 / sdk-base

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

    

lihq1403 / sdk-base example snippets


$config = [
    'sdk_name' => 'xxx',
    'exception_class' => BusinessException::class,
    'component' => [
        'logger' => new EchoLogger(),
        'cache' => new FileCache(),
        'client' => new GuzzleClient(),
    ],
];

$app = new SdkContainer($config);