technoyer / laravel-cuttly
Helping developers using Cutt.ly API for shorter URLs
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/technoyer/laravel-cuttly
Requires
- php: >=7.1
- ext-json: *
- illuminate/support: ^5.8 || ^6.0 || ^7.0 || ^8.0
This package is auto-updated.
Last update: 2025-12-07 13:02:19 UTC
README
The cutt.ly package for Laravel
Installation
As quick as possible you can install this package via composer
1) Download package: laravel-cuttly
Run this command:
composer require technoyer/laravel-cuttly
2) Register service provider
Register the service provider in config/app.php
'providers' => [ // [...] //Cuttly Technoyer\Cuttly\CuttlyServiceProvider::class, ],
You may also register the Cuttly facade:
'aliases' => [ // [...] //Cuttly 'Cuttly' => Technoyer\Cuttly\Facade\Cuttly::class, ],
3) Cuttly API Key
You must add the cutt.ly api key in .evn file, and publishing the config/cuttly.php
php artisan vendor:publish --provider="Technoyer\Cuttly\CuttlyServiceProvider"
Add this line in .env file
CUTTLY_API_KEY=your cutt.ly api key
Get your api key for this link: https://cutt.ly/edit
Usage
<?php $url = app('cuttly')->short('https://www.google.com/example'); //output e.g: https://cutt.ly/FUMWlUC
Or using facade with namespace declaration like this:
<?php $url = Cuttly::short('https://www.google.com/example'); //output e.g: https://cutt.ly/FUMWlUC