Saturday, September 16, 2023
HomePHPReduce Links in Your Laravel Application with the Cuttly Bundle

Reduce Links in Your Laravel Application with the Cuttly Bundle


Cuttly Solution is a Laravel Bundle that supplies a practical wrapper to the Cuttly API It supplies web link reducing, modifying, and also data around reduced Links that you produce in your Laravel application:

usage SlvlerCuttlyFacadesCuttly;

Cuttly:: brief(['short' => 'google.com']);

/ *

{

"link": {

"condition": 7,

"fullLink": "http://google.com",

"day": "2023-08-07",

"shortLink": "https://cutt.ly/ewdVijlY",

"title": "Google"

}

}

*/

You can comfortably recover statistics for a reduced link utilizing the statistics() approach:

usage SlvlerCuttlyFacadesCuttly;

Cuttly:: statistics(['stats' => 'cutt.ly/ewdVijlY']);

/ *

{

"statistics": {

"condition": 1,

"clicks": 0,

"day": "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,

"remainder": 0,

"tools": {},

"refs": {},

"crawlers": "Not enough membership degree"

}

}

*/

You can register and also obtain knowledgeable about the Cutt.ly API by looking into the API documents To get going with the resource code, you can examine it out on GitHub at slvler/laravel-url-shortener

RELATED ARTICLES

Most Popular

Recent Comments