PHP code example of mencoro / mencoro-api-sdk

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

    

mencoro / mencoro-api-sdk example snippets


use Mencoro\Api\Api\AccountApi;
use Mencoro\Api\Configuration;

$config = Configuration::getDefaultConfiguration()
    ->setHost('https://api.mencoro.com')
    ->setAccessToken(getenv('MENCORO_API_KEY'));

$me = (new AccountApi(new GuzzleHttp\Client(), $config))->getMe();