slvler/
laravel-url-shortener
g4t.io

Shorten URLs in Your Laravel App with the Cuttly Package

by Paul Redmond

Cuttly Service is a Laravel Package that provides a convenient wrapper to the Cuttly API, a URL shortener service.

README from slvler/laravel-url-shortener Open on GitHub →

Cuttly Service

tests Latest Stable Version License Total Downloads

This package provides a convenient wrapper to the Cuttly API for Laravel applications.

Requirements

  • PHP 8.1
  • Laravel 9.x | 10.x

Installation

To install this package tou can use composer:

composer require slvler/cuttly

Usage

Find player

$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"
  }
}

Edit Url

$data['edit'] = 'cutt.ly/LwdCoBmo';

Cuttly::edit($data);

Edit URL:

{
  "url": {
    "status": 1
  }
}

Find games

$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"
  }
}

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.

Contributing

You're very welcome to contribute. Please see CONTRIBUTING for details.

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News