Download the PHP package bramin/cuttlylaravel without Composer
On this page you can find all versions of the php package bramin/cuttlylaravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bramin/cuttlylaravel
More information about bramin/cuttlylaravel
Files in bramin/cuttlylaravel
Package cuttlylaravel
Short Description Interact with the Cutt.ly API via Laravel's Http helper and facade
License MIT
Homepage https://github.com/b-ramin/cuttly-laravel
Informations about the package cuttlylaravel
Interact with the Cutt.ly API via Laravels Http Helper
Cutt.ly is a URL shortening service. This package uses Laravel's Http helper to interact with that service to create, update and delete shortened links.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Make sure to set the key to your key from Cutt.ly
Usage
Include the Cuttly Facade
Test the api status
Create a new link:
Parameters:
short
: The URL to be shortened (required)name
: The first and only uri segment after the domain name. Passing null or an empty array will generate a random and unique string.userDomain
: whether it should use the custom domain name instead of cutt.ly. Defaults tofalse
.noTitle
: Disables the title lookup to improve speed. Defaults totrue
.public
: Whether the link is public or private. Defaults totrue
.
Link analytics:
Parameters:
short
: The URL to be shortened (required)dateFrom
: Sets the start date of the period to return data for. Format:YYYY-MM-DD
, e.g.2021-03-02
dateTo
: Sets the end date of the period to return data for. Format:YYYY-MM-DD
, e.g.2021-03-02
Add a tag to a link:
Update the source of a link:
Update the title of a link:
Delete a link:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Brett Ramin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of cuttlylaravel with dependencies
guzzlehttp/guzzle Version ^7.4
illuminate/contracts Version ^9.0
spatie/laravel-package-tools Version ^1.9.2