PHP code example of wbtranslator / wbt-sdk-php

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

    

wbtranslator / wbt-sdk-php example snippets


define('WBT_API_KEY', 'ea84db77506cd5bc8586af4ec4b7a347');

$config = new \WBTranslator\Sdk\Config();
$config->setApiKey(WBT_API_KEY);

$sdk = new \WBTranslator\Sdk\WBTranslatorSdk($config);
$result = $sdk->translations()->all();