<?php // example include_once "ExtConvLinks.inc.php"; $ECLObj = new ExtConvLinks("_your_bitly_login","_your_bitly_apikey"); $Text = "This is a text with some links like http://www.php.net and http://phpclasses.org"; echo "text before conversion: <p>$Text"; $Text = $ECLObj->ExtractAndConvert($Text); echo "<p>text after conversion: <p>$Text"; ?>