Ana Sayfa / Kod ve Scriptler / ShareHub - URL Shortener

ShareHub - URL Shortener

Analitik, QR kodları, jeton tabanlı reklam monetizasyonu, premium planlar, blog ve tam yönetici paneli olan modern URL kısaltıcı.

  • Yayın tarihi5 Nisan 2026
  • Nerede çalışırPHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4
  • Paket içeriği.php, .css, .html, .sql, JavaScript .js
  • Son güncelleme5 Nisan 2026
  • Canlı demoVar
ShareHub - URL Shortener

Overview

ShareHub is a complete, production-ready URL shortener and link management platform built with PHP, MySQL, and Tailwind CSS. It provides a modern, responsive interface for shortening URLs, generating QR codes, tracking real-time click analytics, and monetizing traffic through an integrated coin-based reward system.

Ideal for marketers, content creators, SaaS businesses, and entrepreneurs who want a fully self-hosted link management platform with built-in monetization.

Version 1.0.0 is a major release with 40+ features, a full admin panel, blog system, premium plans, email template management, and six ad platform integrations.

............Demo Details..........

Features

CORE LINK MANAGEMENT - Instant URL shortening with auto-generated short codes - Custom alias support for branded short links (e.g., yourdomain.com/s/mybrand) - QR code generation for every link (downloadable PNG/SVG) - Link share pages with social sharing buttons (Facebook, Twitter, WhatsApp, Telegram, Email) - Bulk link management from user dashboard (create, copy, delete, search) - Clean URL routing via .htaccess rewrite rules

ADVANCED ANALYTICS - Real-time click tracking with IP, user-agent, and referrer data - Browser breakdown (Chrome, Firefox, Safari, Edge, Opera) - Device type detection (Desktop, Mobile, Tablet) - Operating system tracking (Windows, macOS, Linux, iOS, Android) - Country-level geographic distribution - Interactive charts powered by Chart.js - Date range filtering (Today, 7 days, 30 days, All time) - CSV export for external reporting

USER SYSTEM - User registration with email validation - Secure login with bcrypt password hashing - Google OAuth integration (one-click Google login) - Forgot password with SMTP email reset flow - User profile page with avatar upload - User settings (name, email, password change, dark/light theme toggle) - 30-day persistent session management - Admin and User role system

MONETIZATION & COIN ECONOMY - Earn coins by watching video ads - Six ad platform integrations: Google AdSense, Adsterra, PropellerAds, Monetag, HilltopAds, A-Ads - Admin-configurable ad codes, coin rewards, and cooldown timers - Daily ad limit system (different limits for Free vs Premium users) - Daily login streak rewards with configurable bonus schedule - Digital wallet with coin balance and full transaction history - Premium activation: spend coins to unlock 30-day premium membership - Anti-fraud protection: cooldown timers, duplicate ad view detection

PREMIUM PLANS - Free plan with basic features and limited daily ads - Premium plan with higher ad limits, premium badge, and priority features - Beautiful plan comparison page - Auto-expiration after 30 days with countdown display - Admin-configurable premium cost, duration, and feature lists

FULL ADMIN PANEL - Dashboard with total users, links, clicks, revenue overview and charts - User management: view, edit roles, delete, ban, search with pagination - Link management: view all links, search, filter, delete - Ad platform manager: enable/disable platforms, configure ad codes, set rewards - Blog manager: create, edit, publish/draft blog articles with rich content - Email template manager: edit welcome, password reset, and notification emails - Email logs and SMTP test tool - Earnings overview: coin circulation, ad views, premium purchase stats - Plans and pricing configuration - Footer editor with dynamic sections, links, and social media icons - Site settings: name, tagline, logo, favicon, SEO, SMTP, Google OAuth, custom code injection

BLOG SYSTEM - Blog article creation with rich HTML content editor - URL slug generation for clean blog URLs - Per-article SEO (title, description, OG tags, JSON-LD Article schema) - Published/Draft status control - Blog listing page with card layout and individual post pages

EMAIL SYSTEM - 5 built-in email templates (welcome, premium activated, password reset, Google welcome, admin new user) - HTML email template editor with variable placeholders - SMTP configuration from admin panel - Email sending logs with status tracking - Test email tool from admin panel

MODERN UI/UX - Fully responsive design (desktop, tablet, mobile) - Dark/Light mode with system preference detection and manual toggle - Tailwind CSS 3.4 with glass morphism card components - Gradient text and button effects - Smooth fade-in animations and micro-interactions - Google Translate widget for multi-language support - Custom branded 404 error page

SECURITY - CSRF token protection on all forms and API endpoints - PDO prepared statements for all database queries (SQL injection prevention) - bcrypt password hashing with configurable cost factor - HTTPOnly, SameSite=Lax secure cookie settings - Security headers: X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, Referrer-Policy - Input sanitization and XSS prevention - Disabled directory listing - Protected sensitive files via .htaccess

SEO & PERFORMANCE - Dynamic page titles and meta descriptions per page - Open Graph tags (Facebook, LinkedIn, WhatsApp) - Twitter Card tags (summary_large_image) - JSON-LD structured data (WebApplication + Article schemas) - Canonical URLs on every page - Dynamic XML sitemap at /sitemap.xml - Dynamic robots.txt at /robots.txt - noindex on private pages (dashboard, settings, wallet) - Google Search Console and Bing Webmaster verification meta tags - Minified Tailwind CSS build (~50KB) - GZIP compression for HTML, CSS, JS, JSON - Static asset caching (CSS/JS: 30 days immutable, Images: 1 year) - Cache busting via versioned asset URLs - No jQuery dependency — vanilla JavaScript only

INSTALLATION - Built-in 5-step web installer wizard (no command line needed) - Automatic PHP version and extension checking - Database auto-setup with full schema import - Admin account creation during installation - Site URL and settings configuration during install - Complete buyer documentation included (standalone HTML)

API ENDPOINTS - POST /api/create-link.php — Create a new short link - GET /api/analytics.php — Fetch link analytics data - GET /api/qrcode.php — Generate QR code for a link - POST /api/ad-reward.php — Process ad reward and credit coins

STATIC PAGES INCLUDED - About Us page with company story, mission, values - Contact

Requirements

- PHP 7.4 or higher (PHP 8.0+ recommended) - MySQL 5.7 or higher (MySQL 8.0+ recommended) - Apache 2.4+ with mod_rewrite enabled - PHP Extensions: PDO, PDO_MySQL, mbstring, json (required), GD, cURL, OpenSSL (recommended) - Minimum 50 MB disk space (100 MB+ recommended)

Supported Hosting: - Shared Hosting (cPanel, DirectAdmin, Plesk) - VPS / Dedicated Server - XAMPP / WAMP / MAMP (local development) - Cloud Hosting (DigitalOcean, AWS, Linode, etc.)

Note: ShareHub is optimized for Apache. For Nginx, you will need to convert the .htaccess rewrite rules to Nginx configuration format.