PHP code example of interaapps / punyshort
1. Go to this page and download the library: Download interaapps/punyshort 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/ */
interaapps / punyshort example snippets
use modules\punyshort\Punyshort;
$pnsh = new Punyshort();
echo $pnsh->short("https://interaapps.de")->getLink();
de "modules/punyshort/LinkInformation.php";
clude "modules/httprequest/HTTPResponse.php";
use modules\punyshort\Punyshort;
$pnsh = new Punyshort();
echo $pnsh->short("https://interaapps.de/ia")->getLink();
php uppm install punyshort-lib