1. Go to this page and download the library: Download synerise/php-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/ */
synerise / php-sdk example snippets
use Synerise\Sdk\Api\ClientBuilder;
use Synerise\Sdk\Api\Config;
/** @var Config $config implementation of Config interface */
$clientBuilder = new ClientBuilder($config);
use Microsoft\Kiota\Abstractions\RequestAdapter;
use Synerise\Sdk\Api\ClientBuilder;
use Synerise\Sdk\Api\Config;
/**
* @var Config $config implementation of Config interface
* @var RequestAdapter $requestAdapter implementation of RequestAdapter interface
*/
$clientBuilder = new ClientBuilder($config, $requestAdapter);
// Install cache implementation
composer isAdapter;
use Synerise\Sdk\Api\Authentication\TokenProviderFactory;
$cache = new RedisAdapter(RedisAdapter::createConnection('redis://localhost'));
$tokenProvider = TokenProviderFactory::createWithPsrCache($config, $cache);
shell
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.