nybbl/url

API Library for integrating with the Nybbl URL shortener (v1)

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/nybbl/url

1.0.0 2018-11-21 13:54 UTC

This package is auto-updated.

Last update: 2025-10-22 05:31:59 UTC


README

A simple wrapper for the Nybbl URL Shortener API that requires PHP >= 7.0.

Requirements

  • PHP >= 7.0 with cURL extension,

Installation

The recommended way is using composer:

$ composer require nybbl/url

Basic usage

use Nybbl\Url;

$client = new Url\Client('<my endpoint>', '<my token>');
$response = $client->api('link')->create('https://nybbl.io/');

$client = new Url\Client('<my endpoint>', '<my token>');
$response = $client->api('link')->getOne(1);

$client = new Url\Client('<my endpoint>', '<my token>');
$response = $client->api('link')->getList();

Contributing

Feel free to make any comments, file issues or make pull requests.