PHPackages                             teertz/shortlink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. teertz/shortlink

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

teertz/shortlink
================

Generating a short-link by id

v1.0.1(9y ago)117MITPHPPHP &gt;=5.0

Since Oct 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/teertz/shortlink)[ Packagist](https://packagist.org/packages/teertz/shortlink)[ RSS](/packages/teertz-shortlink/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Shortlink Generator
===================

[](#shortlink-generator)

Introduction
------------

[](#introduction)

Teertz Shortlink provides a simple way to generate a path of shortlink by passing an ID of your object and keep it in your database as you want.

The generated link is like: `http://example.com/abdg`;

### Basic Usage

[](#basic-usage)

To get started with Teertz Shortlink, add to your `composer.json` file as a dependency:

```
composer require teertz/shortlink

```

#### Get the full path

[](#get-the-full-path)

```
