Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linkr PHP Client

For https://github.com/LINKIWI/linkr

Usage

$client = new \Bnb\Linkr\Client('https://linkr.foo.bar', 'MyApiKey');

// Create a link - Returns a Bnb\Linkr\ShortUrl
$link = $client->shorten('https://foo.bar/with/a/very/long/url');

// Get link info - Returns a Bnb\Linkr\ShortUrl
$link = $client->info('myAlias');

// Delete a link by alias
$client->delete($link->alias);

If behind a proxy, configure once at runtim :

// Anonymous
Linkr::setHttpProxy('http://10.10.10.10');

// Authenticated
Linkr::setHttpProxy('http://10.10.10.10', 'user', 'password');

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages