PHPackages                             sharasolns/link-shortener - 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. sharasolns/link-shortener

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

sharasolns/link-shortener
=========================

Link shortener for php

02.9kPHP

Since Jan 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sharasolns/link-shortener)[ Packagist](https://packagist.org/packages/sharasolns/link-shortener)[ RSS](/packages/sharasolns-link-shortener/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-link-shortener
======================

[](#laravel-link-shortener)

Php package to easily shorten your links from .

Installation
------------

[](#installation)

Using composer, install it with the following command

```
composer require sharasolns/link-shortener
```

Authentication
--------------

[](#authentication)

You need an api key to use this package, procedure

- Login to your sm account here
- Go to Profile &gt; Settings &gt; ApiKeys or click this link if you are logged in
- Click Add Key, give it a name then submit
- You will be prompted to copy the api key You are done with generating api key, use it in the step below

Usage
-----

[](#usage)

To use it, in plain php, below is the code structure

```
$apikey = "Your_Api_ Key";

$shortener = new \Sharasolns\LinkShortener\Links\Shortener($apikey);
$longUrl = "https://example.com/long-url";
$res = $shortener->shortenLink($url);

$shortenedUrl = $res->link->shortened_url

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0a938e18a864899b0a7963fc0e63d48be5d7ec5ecc5543ff9423bf85905ba4f?d=identicon)[ictianspecialist](/maintainers/ictianspecialist)

---

Top Contributors

[![iankibet](https://avatars.githubusercontent.com/u/10730525?v=4)](https://github.com/iankibet "iankibet (11 commits)")

### Embed Badge

![Health badge](/badges/sharasolns-link-shortener/health.svg)

```
[![Health](https://phpackages.com/badges/sharasolns-link-shortener/health.svg)](https://phpackages.com/packages/sharasolns-link-shortener)
```

###  Alternatives

[kevinsimard/laravel-cookieless-session

Laravel middleware to start a cookieless session

1417.0k](/packages/kevinsimard-laravel-cookieless-session)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
