LinkSnap - URL Shortener with Analytics & QR Codes
A self-hosted link shortener your clients can actually own: clicks, QR codes, and zero dependencies.
LinkSnap is a lightweight, self-contained PHP + MySQL URL shortener you can deploy on any shared hosting account in minutes, no Composer, no Node build step, no framework to learn. Paste a long URL and get a short, shareable link with an optional custom alias, then track every click on a clean admin dashboard with a per-link analytics page and a 14-day activity chart. Every link automatically gets its own QR code, generated by a QR encoder written entirely in plain PHP, so it keeps working even with zero outbound internet access. It's the perfect drop-in link-shortening tool for freelancers and agencies to brand, resell, or bundle into client projects.
Features:
- One-page public link shortener with optional custom alias and optional expiry date
- Password-protected admin dashboard: view every link, its status, and its click count
- Per-link analytics: total clicks, a 14-day clicks-per-day bar chart, and a recent-clicks log (time, referrer, user agent)
- Automatic QR code for every short link via a bundled, dependency-free pure-PHP encoder (PNG or SVG, no external API required)
- Enable, disable, edit-destination, or permanently delete any link
- Friendly "link expired" and "link disabled" pages instead of broken redirects
- Duplicate custom-alias protection with a clear, friendly error message
- Optional pretty-URL rewrite for yoursite.com/code instead of yoursite.com/r.php?c=code
- Security built-in: PDO prepared statements everywhere, CSRF-protected admin actions, bcrypt password hashing, escaped output, honeypot + rate-limited public form
- Clean, modern, fully responsive UI styled with CSS variables, easy to reskin for any brand
New in version 2:
- Click-count based link expiration alongside the existing date-based expiration
- Tags for organizing and filtering links on the dashboard
- Device and browser detection on every click, plus bulk enable/disable/delete for links
- Per-visitor rate limiting on login and link creation, and new security headers
- Pagination on the links list and each link's click history, with copy-to-clipboard on the link detail page
Existing v1 customers can upgrade their database in place using the upgrade guide included with the download.
Requirements
PHP 7.4 or newer MySQL 5.7+ or MariaDB 10.3+
Compatibility
PHP 7.4 - 8.3, MySQL/MariaDB
v2.0.0 Current Sep 4, 2026
Added click-count based link expiration alongside the existing date-based expiration, tags for organizing and filtering links on the dashboard, device and browser detection on every click, and bulk enable/disable/delete for links. Added per-visitor rate limiting on login and link creation, security headers (X-Content-Type-Options, X-Frame-Options, Referrer-Policy), and moved all admin actions to a post/redirect/get pattern with flash messages so refreshing never resubmits a form. Paginated the links list and each link's click history so the app stays fast as your data grows, and added the matching database indexes for that, including a composite index for per-link click lookups. Added copy-to-clipboard on the link detail page, clearer empty states, keyboard focus outlines, and small mobile layout fixes. Updated schema.sql for new installs and added UPGRADE.md with the exact SQL to bring an existing v1 database up to date without losing any data.
v1.0.0 Aug 28, 2026
No reviews yet.
You might also like
FileVault Share
Self-hosted secure file sharing with passwords, expiry, and download limits: no framework, no Composer, just PHP + MySQL.
SnapCompress - Bulk Image Compressor & Format Converter
Drag, drop, compress. A self-hosted bulk image optimizer your visitors can use in seconds, no account required.
VenueReserve - Venue & Room Booking System
A lightweight, self-hosted reservation system for meeting rooms, event halls, sports courts, and co-working spaces, with a real conflict-free approval workflow.
QuickTasks - Team Task & Project Tracker with Kanban Board
A self-hosted Trello-style task tracker with Kanban boards, projects, and due-date tracking.
BudgetLine - PHP Expense & Budget Tracker
A lightweight, self-hosted expense and budget tracker for individuals, freelancers and small teams: pure PHP + MySQL, no framework required.
ClientVault - Lightweight PHP CRM
A clean, self-hosted PHP CRM to manage contacts, track deals, and never miss a follow-up: no framework, no monthly SaaS fee.