PHP code example of axl-media / short-pw-php-sdk
1. Go to this page and download the library: Download axl-media/short-pw-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/ */
axl-media / short-pw-php-sdk example snippets
use AXLMedia\ShortPw\ShortPw;
$api = new ShortPw('[your_api_key]');
// Returns an array
$api->shortenUrl('https://test.com');
// Returns just the short URL as string
$api->shorten('https://test.com');