PHPackages                             tenqz/shortify - 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. tenqz/shortify

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

tenqz/shortify
==============

🚀 Lightweight PHP library to shorten URLs effortlessly. Convert long links into short, memorable ones with zero dependencies. Perfect for APIs, custom shorteners, and frameworks like Laravel/Symfony.

v1.1.2(1y ago)01[1 issues](https://github.com/tenqz/shortify/issues)MITPHPPHP ^8.3CI passing

Since Apr 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tenqz/shortify)[ Packagist](https://packagist.org/packages/tenqz/shortify)[ Docs](https://github.com/tenqz/shortify)[ RSS](/packages/tenqz-shortify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

[![Build Status](https://github.com/tenqz/shortify/workflows/Tests/badge.svg)](https://github.com/tenqz/shortify/actions)[![Total Downloads](https://camo.githubusercontent.com/f59820d4a3cb7e6a9d2c9ed4b6627e5b05ce05b776f89b09b31c40d01590ac03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656e717a2f73686f7274696679)](https://packagist.org/packages/tenqz/shortify)[![Latest Stable Version](https://camo.githubusercontent.com/43ed4a06f707f9f935032d703b19f5ba84c4b78bf3d56ee4f1b2a849ec8a6f04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656e717a2f73686f7274696679)](https://packagist.org/packages/tenqz/shortify)[![License](https://camo.githubusercontent.com/5f6192453e87ff9defa1ae03530b492e60812f732794c483634a6f1bd739d399/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74656e717a2f73686f7274696679)](https://packagist.org/packages/tenqz/shortify)

Shortify
========

[](#shortify)

🚀 Lightweight PHP 8.3+ library for URL shortening that follows SOLID and DDD principles.

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- Composer

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

[](#installation)

```
composer require tenqz/shortify
```

Features
--------

[](#features)

- PHP 8.3+
- PSR-12 compliant
- SOLID/DDD: clear layer separation, ValueObject, Dependency Injection
- TDD: code covered with tests
- Minimalistic and clean code (KISS/DRY)

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
