<?php /** * The basic usage of this library. * If you're a beginner and 'Lloyd\Shorten\Create' scares you, don't let it! */ // Include the library include "googl.class.php"; // The URL we want to shorten $url = "https://github.com/lloydaaa"; // New Googl class $googl = new Googl('YOUR API KEY', $url); // Display our generated shortened link echo $googl->generate();