nddcoder / tinyurl-php-sdk
1.0.0
2020-12-23 04:49 UTC
Requires
- php: ^7.4|^8.0
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^4.3
This package is auto-updated.
Last update: 2025-03-18 09:11:03 UTC
README
# tinyurl-php-sdk [](https://packagist.org/packages/nddcoder/tinyurl-php-sdk) [](https://github.com/dangdungcntt/tinyurl-php-sdk/actions?query=workflow%3ATests+branch%3Amaster) [](https://packagist.org/packages/nddcoder/tinyurl-php-sdk) The simple wrapper for TinyURL api. ## Installation You can install the package via composer: ```bash composer require nddcoder/tinyurl-php-sdk ``` ## Usage Short URL ```php $shortedUrl = Nddcoder\TinyURL\TinyURL::create('https://nddcoder.com'); echo $shortedUrl; //https://tinyurl.com/ufvltuz ``` Preview Shorted URL ```php $targetUrl = Nddcoder\TinyURL\TinyURL::preview('https://tinyurl.com/ufvltuz'); echo $targetUrl; //https://nddcoder.com ``` ## Testing ```bash composer test ``` ## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Contributing Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details. ## Security Vulnerabilities Please review [our security policy](../../security/policy) on how to report security vulnerabilities. ## Credits - [Dung Nguyen Dang](https://github.com/dangdungcntt) - [All Contributors](../../contributors) ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information.