RepositoryPHPIDIndonesia
realodix

realodix/urlhub

✂️ URL shortener web application based on the Laravel PHP Framework.

543sao
143fork
3issue
0lượt xem
image

LaravelVersion GitHub license MadeWithLaravel.com shield DeepWiki

Whatever your idea, feel free to send a pull request 😃

UrlHub was created, and is maintained by Budi Hermawan, and is an open-source, easy-to-use but powerful URL shortener. It allows you to host your own URL shortener, and gives you many useful features.

Features

  • Reliable link shortner: Does the job really well and it is very consistent. UrlHub is definitely one of the most reliable self-hosted URL shortener out there. Would recommend easily.
  • Custom URLs (ex: example.com/laravel): Allows users to create more descriptive short URLs rather than a randomly generated mix of letters and numbers.
  • QR Code Generation: The fastest way to access to this data is most likely opening the link from a phone. Though short URLs are handy for typing, a more convenient approach to transfer a web link to a mobile phone is through QR codes scanning.
  • Edit or delete your links: You can change both the address and the destination URL. You can even delete your URL, a feature that is not available with most shorteners.
  • Device-Aware Redirection: Redirect mobile visitors to the appropriate URL depending on the operating system.
  • Password protection: Limit access to the destination URL with a password.
  • Link expiration: Set the expiration date and time to create temporary short links. Specify the expiration URL where visitors will be redirected after the old link has expired.
  • Parameter Passing: Forward query parameters from your short link to the destination URL.
  • View where link goes: It's nice to see where the link goes before clicking on it so you can avoid sketchy links.
  • Dark mode: Switch to a darker color scheme for a more comfortable experience in low-light environments.
  • Power of customisation: Do you want your site to be just for your use, so no one can register? No problem. It's in the configuration. Users must be registered to create Short URL? That's okay. It's in the configuration. From configuration file, you can edit pretty everything of your website. The choice is yours.
  • Sortable list of shortened URLs.
  • Modern and simple interface.
  • Made with :heart: & :coffee:.

Requirements

UrlHub is a Laravel application. That means it requires this setup:

  • PHP 8.4 or newer
  • A web server like Apache or Nginx
  • MySQL / MariaDB / SQLite

Quick Start

Installation Instructions

  1. Rename .env.example file to .env or run cp .env.example .env.

    Update .env to your specific needs.

  2. Run composer install.

  3. Run php artisan key:generate.

  4. Run php artisan migrate --seed.

  5. Run php artisan serve.

  6. Login

    EmailUsernamePasswordAccess
    admin@urlhub.testadminadminAdmin Access
    user@urlhub.testuseruserUser Access

Bundle application's assets

  1. npm install

  2. # Run the Vite development server...
    npm run dev
    
    # Build and version the assets for production...
    npm run build
    

Contributing

The people who contribute to UrlHub do so for the love of open source, our users and ecosystem, and most importantly, pushing the web forward together. Developers like you can help by contributing to rich and vibrant documentation, issuing pull requests to help us cover niche use cases, and to help sustain what you love about UrlHub.

Anybody can help by doing any of the following:

  • Ask your employer to use UrlHub in projects.
  • Contribute to the core repository.

Running Tests

From the projects root folder run

  • php artisan test
  • or composer test
  • or ./vendor/bin/phpunit

Bug Report

If you've found a problem in UrlHub which is not a security risk, do a search on GitHub under Issues in case it has already been reported. If you are unable to find any open GitHub issues addressing the problem you found, your next step will be to open a new one.

Your issue should contain a title and a clear description of the issue. You should also include as much relevant information as possible and a code sample that demonstrates the issue.

The goal of a bug report is to make it easy for yourself - and others - to replicate the bug and develop a fix. Remember, bug reports are created in the hope that others with the same problem will be able to collaborate with you on solving it.

Do not expect that the bug report will automatically see any activity or that others will jump to fix it. Creating a bug report serves to help yourself and others start on the path of fixing the problem.

License

UrlHub is an open-source software licensed under the MIT license.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPHP
YOURLS/YOURLS

🔗 The 𝘥𝘦 𝘧𝘢𝘤𝘵𝘰 standard, self hosted, powerful and customizable, URL shortener in PHP

12.3k
Nov 29, 2026
RepositoryJavaScript
thedevs-network/kutt

Free Modern URL Shortener.

11.2k
Oct 19, 2026
RepositorySvelte
heyitswit/nah.pet

Rewriting paths with bad energy - An alternative to TinyURL, YOURLS, Shlink

154
Dec 5, 2025
RepositoryTypeScript
Agenty/shortener

An open-source URL shortener to create shorten link with Cloudflare worker and pages. Deploy on Cloudflare for custom domain for free!

108
Dec 2, 2026
RepositoryHTML
nelsontky/gh-pages-url-shortener

Minimal URL shortener that can be entirely hosted on GitHub pages.

1.4k
Jun 26, 2024
RepositoryRust
SinTan1729/chhoto-url

A simple, blazingly fast, self-hosted URL shortener with no unnecessary features; written in Rust

1.0k
Nov 30, 2026
RepositoryPython
amitt001/pygmy

An open-source, feature rich & extensible url-shortener + analytics written in Python :cookie:

730
Nov 25, 2026
RepositoryGo
barats/ohUrlShortener

适合中小型社区网站使用的企业级短链接服务系统,支持短链接生产、查询及302转向,并自带点击量统计、独立IP数统计、访问日志

451
Sep 15, 2023
RepositoryRust
vpetersson/dslf

A small link forwarder written in Rust.

51
Nov 16, 2026