Skip to content

dangdungcntt/tinyurl-php-sdk

Repository files navigation

tinyurl-php-sdk

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.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages