PHP code example of xgenious / xgapiclient

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

    

xgenious / xgapiclient example snippets


return [
    "base_api_url" => "https://license.xgenious.com",
    "has_token" => "" //unique product code for license server
];

$xgapiclient = new XgApiClient\XgApiClient();
echo $xgapiclient->echoPhrase('Hello, XgApiClient!');
bash
php artisan vendor:publish --tag="xgapiclient-migrations" 
php artisan migrate
bash
php artisan vendor:publish --tag="xgapiclient-config"
bash
php artisan vendor:publish --tag="xgapiclient-views"