This package provides a convenient wrapper to the Cuttly API for Laravel applications.
- PHP 8.0+
- Laravel 9.x
To install this package tou can use composer:
composer require slvler/cuttly
$data['short'] = 'google.com';
Cuttly::short($data);
URL Shortener:
{
"url": {
"status": 7,
"fullLink": "http://google.com",
"date": "2023-08-07",
"shortLink": "https://cutt.ly/ewdVijlY",
"title": "Google"
}
}
$data['edit'] = 'cutt.ly/LwdCoBmo';
Cuttly::edit($data);
Edit URL:
{
"url": {
"status": 1
}
}
$data['stats'] = 'cutt.ly/ewdVijlY';
Cuttly::stats($data);
URL Stats:
{
"stats": {
"status": 1,
"clicks": 0,
"date": "2023-08-07",
"title": "Google",
"fullLink": "http://google.com",
"shortLink": "https://cutt.ly/ewdVijlY",
"facebook": 0,
"twitter": 0,
"pinterest": 0,
"instagram": 0,
"googlePlus": 0,
"linkedin": 0,
"rest": 0,
"devices": {},
"refs": {},
"bots": "Insufficient subscription level"
}
}
composer test
The MIT License (MIT). Please see License File for more information.
You're very welcome to contribute. Please see CONTRIBUTING for details.