Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (13) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2023-08-16 (1 month ago) | Not yet rated by the users | Total: 16 This week: 1 | All time: 11,056 This week: 102 |
Version | License | PHP version | Categories | |||
laravel-url-shortene 1.0 | The PHP License | 7 | HTTP, Web services, PHP 7 |
Description | Author slvler Contributor | |
This package can create and manipulate short URLs using cutt.ly API. |
This package provides a convenient wrapper to the Cuttly API for Laravel applications.
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.
Files |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
config (1 file) | ||||
src (4 files, 1 directory) | ||||
tests (2 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Facades (1 file) | ||||
Cuttly.php | Class | Class source | ||
CuttlyApiWrapper.php | Class | Class source | ||
CuttlyServiceProvider.php | Class | Class source | ||
HttpResponse.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.