bnbwebexpertise / linkr-php-client
Linkr PHP client lib
Installs: 84
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/bnbwebexpertise/linkr-php-client
Requires
- php: >=7.1
- ext-curl: *
This package is auto-updated.
Last update: 2025-09-29 01:50:17 UTC
README
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');