public function shorten ($url)
    {
        $shortened = null;
        
        $this->shortenAll([$url], function ($error, $short, $long) use (&$shortened) {
            $shortened = $short;
        });
        
        return $shortened;
    }
public function shorten ($url)
    {
        $shortened = null;
        
        $this->shortenAll([$url], function ($error, $short, $long) use (&$shortened) {
            $shortened = $short;
        });
        
        return $shortened;
    }
public function shorten ( $ url ) { $ shortened = null ; $ this -> shortenAll ( [ $ url ] , function ( $ error , $ short , $ long ) use ( & $ shortened ) { $ shortened = $ short ; } ) ; return $ shortened ; }
Returns a shorter representation of the given URL. Similar to URL shortening services like bit.ly, etc.

@param string $url

@return string|null
Returns a shorter representation of the given URL . Similar to URL shortening services like bit . ly etc .