locomotivemtl/o6c-client

There is no license information available for the latest version (0.1) of this package.

0.1 2020-05-05 19:12 UTC

This package is auto-updated.

Last update: 2024-12-17 01:49:01 UTC


README

Only 6 characters URL-shortener PHP client.

See locomotivemtl/o6c-api

How to install

composer require locomotivemtl/o6c-client

Dependencies

  • php 7.3+
  • ext-json
  • guzzlehttp/guzzle

How to use

$client = new \Only6\Client('https://o6c.ca', $username, $password);
$ret = $client->shorten('https://example.com/my-long-url');
echo $ret['short'];