https://github.com/dangdungcntt/tinyurl-php-sdk
https://github.com/dangdungcntt/tinyurl-php-sdk
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dangdungcntt/tinyurl-php-sdk
- Owner: dangdungcntt
- License: mit
- Created: 2020-12-23T04:06:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T07:33:57.000Z (12 months ago)
- Last Synced: 2025-02-20T04:03:33.764Z (4 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
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.