PHP Classes

Laravel URL Shortener: Create and manipulate short URLs using cutt.ly API

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 19 All time: 11,307 This week: 524Up
Version License PHP version Categories
laravel-url-shortene 1.0The PHP License7HTTP, Web services, PHP 7
Description 

Author

This package can create and manipulate short URLs using cutt.ly API.

It provides a wrapper class that can send HTTP requests to the cutt.ly API Web server to perform several types of operations with short URLs.

Currently, it can:

- Create a new short URL

- Edit a short URL

- Get statistics for a short URL

Picture of Hicri
  Performance   Level  
Name: Hicri <contact>
Classes: 26 packages by
Country: Turkey Turkey
Age: 30
All time rank: 291048 in Turkey Turkey
Week rank: 164 Up3 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Documentation

slvler - Cuttly Service

tests Latest Stable Version Latest Unstable Version License

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

Requirements

  • PHP 8.0+
  • Laravel 9.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.


  Files folder image Files (13)  
File Role Description
Files folder image.github (1 directory)
Files folder imageconfig (1 file)
Files folder imagesrc (4 files, 1 directory)
Files folder imagetests (2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (13)  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files (13)  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file tests.yml Data Auxiliary data

  Files folder image Files (13)  /  config  
File Role Description
  Accessible without login Plain text file cuttly.php Aux. Auxiliary script

  Files folder image Files (13)  /  src  
File Role Description
Files folder imageFacades (1 file)
  Plain text file Cuttly.php Class Class source
  Plain text file CuttlyApiWrapper.php Class Class source
  Plain text file CuttlyServiceProvider.php Class Class source
  Plain text file HttpResponse.php Class Class source

  Files folder image Files (13)  /  src  /  Facades  
File Role Description
  Plain text file Cuttly.php Class Class source

  Files folder image Files (13)  /  tests  
File Role Description
Files folder imageFeature (1 file)
Files folder imageUnit (1 file)

  Files folder image Files (13)  /  tests  /  Feature  
File Role Description
  Plain text file CuttlyTest.php Class Class source

  Files folder image Files (13)  /  tests  /  Unit  
File Role Description
  Plain text file TestCase.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:19
This week:0
All time:11,307
This week:524Up