samhk222/tinyurl
最新稳定版本:0.0.5
Composer 安装命令:
composer require samhk222/tinyurl
包简介
Shorten a url with tinyurl
关键字:
README 文档
README
Shorten a url, beeing autenticated or not in tinyurl
Installation
You can install the package via composer:
composer require samhk222/tinyurl
Usage
Shortening url without beeing autenticated
$shortened = new Samhk222\TinyUrl\TinyUrl(); echo $shortened->shorten('very long url');
Shortening url beeing autenticated (you can get your token here). Remember,
never
save your token in a repo or in the code, save it to a .env file or something
similar to that
$shortened = Samhk222\TinyUrl\TinyUrl::token("your token here"); echo $shortened->shorten('very long url');
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 343
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-27