nddcoder/tinyurl-php-sdk

1.0.0 2020-12-23 04:49 UTC

This package is auto-updated.

Last update: 2024-11-18 08:25:36 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

The simple wrapper for TinyURL api.

Installation

You can install the package via composer:

composer require nddcoder/tinyurl-php-sdk

Usage

Short URL

$shortedUrl = Nddcoder\TinyURL\TinyURL::create('https://nddcoder.com');
echo $shortedUrl; //https://tinyurl.com/ufvltuz

Preview Shorted URL

$targetUrl = Nddcoder\TinyURL\TinyURL::preview('https://tinyurl.com/ufvltuz');
echo $targetUrl; //https://nddcoder.com

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.