PHP code example of taqlyn / sdk-php
1. Go to this page and download the library: Download taqlyn/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/ */
taqlyn / sdk-php example snippets
use Taqlyn\Client;
baseUrl: getenv('TAQLYN_BASE_URL'),
clientId: getenv('TAQLYN_CLIENT_ID'),
privateKeyPem: getenv('TAQLYN_PRIVATE_KEY'),
);
$link = $client->createShortLink([
'destinationWeb' => 'https://example.com/offer',
'mode' => 'web_only',
]);
echo $link['shortUrl'];
bash
composer bash
composer test
# or, without installing Composer dependencies:
php tests/smoke.php