Download the PHP package tly/laravel-url-shortener-api without Composer
On this page you can find all versions of the php package tly/laravel-url-shortener-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tly/laravel-url-shortener-api
More information about tly/laravel-url-shortener-api
Files in tly/laravel-url-shortener-api
Download tly/laravel-url-shortener-api
More information about tly/laravel-url-shortener-api
Files in tly/laravel-url-shortener-api
Vendor tly
Package laravel-url-shortener-api
Short Description A Laravel package for the T.LY URL Shortener API
License MIT
Homepage https://github.com/tlyshortener/t.ly-laravel-url-shortener-api
Package laravel-url-shortener-api
Short Description A Laravel package for the T.LY URL Shortener API
License MIT
Homepage https://github.com/tlyshortener/t.ly-laravel-url-shortener-api
Please rate this library. Is it a good library?
Informations about the package laravel-url-shortener-api
T.LY Laravel URL Shortener API
Laravel wrapper for the T.LY API, including full support for the endpoints in the T.LY Postman collection.
Create an API Key
- Register a T.LY account.
- Create an API token.
Installation
Publish config:
Set environment values:
Usage
All methods return decoded JSON from the T.LY API.
Quick Start
Method Reference
Short Links
| API Endpoint | Method | Service Method |
|---|---|---|
/api/v1/link/shorten |
POST |
create(array $data) |
/api/v1/link |
GET |
get(string $shortUrl) |
/api/v1/link |
PUT |
update(array $data) |
/api/v1/link |
DELETE |
delete(string $shortUrl) |
/api/v1/link/list |
GET |
list(array $params = []) |
/api/v1/link/list |
GET |
listShortLinks(array $params = []) |
/api/v1/link/expand |
POST |
expand(string $shortUrl, ?string $password = null, array $payload = []) |
/api/v1/link/bulk |
POST |
bulk(array $payload) |
/api/v1/link/bulk/update |
POST |
bulkUpdate(array $payload) |
/api/v1/link/stats |
GET |
stats(string $shortUrl, array $params = []) |
Example:
OneLinks
| API Endpoint | Method | Service Method |
|---|---|---|
/api/v1/onelink/stats |
GET |
oneLinkStats(string $shortUrl, ?string $startDate = null, ?string $endDate = null, array $params = []) |
/api/v1/onelink/stat |
DELETE |
deleteOneLinkStats(string $shortUrl) |
/api/v1/onelink/list |
GET |
listOneLinks(array $params = []) |
Example:
UTM Preset Methods
| API Endpoint | Method | Service Method |
|---|---|---|
/api/v1/link/utm-preset |
POST |
createUtmPreset(array $payload) |
/api/v1/link/utm-preset |
GET |
listUtmPresets(array $params = []) |
/api/v1/link/utm-preset/{id} |
GET |
getUtmPreset($id) |
/api/v1/link/utm-preset/{id} |
PUT |
updateUtmPreset($id, array $payload) |
/api/v1/link/utm-preset/{id} |
DELETE |
deleteUtmPreset($id) |
Example:
Pixels
| API Endpoint | Method | Service Method |
|---|---|---|
/api/v1/link/pixel |
POST |
createPixel(array $payload) |
/api/v1/link/pixel |
GET |
listPixels(array $params = []) |
/api/v1/link/pixel/{id} |
GET |
getPixel($id) |
/api/v1/link/pixel/{id} |
PUT |
updatePixel($id, array $payload) |
/api/v1/link/pixel/{id} |
DELETE |
deletePixel($id) |
Example:
QR Codes
| API Endpoint | Method | Service Method |
|---|---|---|
/api/v1/link/qr-code |
GET |
getQrCode(string $shortUrl, array $params = []) |
/api/v1/link/qr-code |
PUT |
updateQrCode(array $payload) |
Example:
Tags
| API Endpoint | Method | Service Method |
|---|---|---|
/api/v1/link/tag |
GET |
listTags(array $params = []) |
/api/v1/link/tag |
POST |
createTag(array $payload) |
/api/v1/link/tag/{id} |
GET |
getTag($id) |
/api/v1/link/tag/{id} |
PUT |
updateTag($id, array $payload) |
/api/v1/link/tag/{id} |
DELETE |
deleteTag($id) |
Example:
License
MIT
All versions of laravel-url-shortener-api with dependencies
PHP Build Version
Package Version
The package tly/laravel-url-shortener-api contains the following files
Loading the files please wait ...