HYLS is a powerful, modern URL shortener with bio link pages, video embeds, OAuth integration, QR codes, and comprehensive analytics tracking.
- HypeChats OAuth - Sign in with HypeChats account
- Google OAuth 2.0 - Sign in with Google account
- Email/Password Login - Traditional authentication with bcrypt hashing
- Profile Management - Update profile pictures, names, and settings
- Session Security - Secure session handling and timeout
- SQL Injection Protection - All queries use prepared statements
- XSS Prevention - Input sanitization on all user data
- Custom Short URLs - Create memorable branded short links
- Random Short Codes - Auto-generate unique 6-character codes
- Link Editing - Update destination URLs without changing short code
- Link Deletion - Remove unwanted links instantly
- Link Banning - Admin can ban/block malicious links with reasons
- Bulk Operations - Manage multiple links at once
- Link Categories - Organize links (coming soon)
- Custom Bio Pages - Create personalized landing pages at
/bio.php?u=username - Profile & Cover Images - Upload and crop custom images (12MB max)
- Video Background - Set video as cover background
- 29+ Social Platform Links - Connect all your social media:
- Facebook, Instagram, Twitter/X, LinkedIn, YouTube
- TikTok, Snapchat, Pinterest, Reddit, Tumblr
- WhatsApp, Telegram, Discord, Skype, Slack
- GitHub, GitLab, Dribbble, Behance, Medium
- Spotify, SoundCloud, Apple Music, Twitch
- Steam, Xbox, PlayStation, Patreon, Ko-fi
- And 4 more custom platforms!
- Video Embeds - Embed videos from 6 platforms:
- š YouTube - Full support with thumbnails
- š Facebook Videos - Native embed support
- š Instagram Reels/Videos - Direct integration
- š TikTok - Embed TikTok videos
- š Vimeo - Professional video hosting
- š Dailymotion - Alternative video platform
- 6-Image Gallery - Showcase your portfolio or products
- Theme Customization - Choose custom brand colors (hex/rgb)
- Contact Information - Email and phone with show/hide toggle
- Bio Description - Rich text bio with line breaks
- View Counter - Track total page visits
- Link Toggle - Enable/disable individual social links
- Display Order - Reorder social links (drag & drop coming)
- Mobile Optimized - Perfect responsive design
- SEO Friendly - Meta tags and Open Graph support
- Real-time Click Tracking - Monitor link performance live
- Click Statistics - Total clicks per link
- IP Address Tracking - Log visitor IPs
- Referrer Tracking - See where traffic comes from
- User Agent Logging - Track browsers and devices
- Geolocation - Country/city tracking (with IP database)
- Time Series Data - View clicks over time
- Export Reports - Download analytics as CSV
- Link Performance - Top performing links dashboard
- Unique vs Total Clicks - Track unique visitors
- Multiple Platforms - Support for 6 major video platforms
- Auto Thumbnail - Automatic thumbnail extraction
- Responsive Embeds - Adapts to all screen sizes
- View Counter - Track video views on bio page
- Platform Icons - Display source platform badges
- Title & Description - Add context to embedded videos
- Display Order - Control video sequence
- Enable/Disable - Show/hide individual videos
- Advertisement System - Display ads on bio pages and redirects
- Ad Management Panel - Create and manage advertisements
- Ad Analytics - Track ad clicks and impressions
- Position Control - Set ad display order
- Image Ads - Upload custom ad banners
- CTA Buttons - Call-to-action button customization
- Enable/Disable Ads - Toggle ads on/off
- Ad Scheduling - Set start/end dates (coming soon)
- Revenue Tracking - Monitor monetization (coming soon)
- Comprehensive Dashboard - Statistics overview
- User Management - View, edit, delete users
- Link Management - Moderate all shortened URLs
- Ban System - Block problematic links with reasons
- User Roles - Admin and regular user roles
- System Settings - Configure site-wide options
- SMTP Configuration - Email server settings
- OAuth Settings - Configure Google & HypeChats OAuth
- Advertisement Manager - Create and manage ads
- Analytics Dashboard - View detailed statistics
- Database Backup - Manual backup functionality
- One-Click Updates - Auto-update from GitHub (requires Git)
- Database Migration System - Automatic schema updates
- Installation Wizard - Easy setup with step-by-step guide
- Mobile Responsive - Optimized for all devices
- Modern UI - Clean, gradient-based design with animations
- Dark Mode Ready - Prepare for dark theme (coming soon)
- REST API - API endpoints for link creation (coming soon)
- Webhooks - Event notifications (coming soon)
- Multi-language - i18n support (coming soon)
- Custom Domains - Use your own domains (coming soon)
- Team Collaboration - Share links in workspace (coming soon)
- Link Folders - Organize links in folders (coming soon)
- SMTP Integration - Full email sending capability
- Welcome Emails - Auto-send to new users
- Password Reset Emails - Secure reset links
- Notification Emails - Link expiration alerts
- HTML Templates - Beautiful email designs
- Test Email Function - Verify SMTP settings
- Popular SMTP Support - Gmail, SendGrid, Mailgun, etc.
- Bio Content Editor - Rich text editing
- Image Upload - Drag & drop image uploads
- Image Cropping - Built-in crop tool for profile pictures
- Gallery Management - Upload/delete gallery images
- Link Organization - Sort and manage social links
- Draft Mode - Save bio as draft before publishing
- Preview Mode - Preview bio page before going live
- ā 29+ Social Platforms supported
- ā 6 Video Embed Platforms integrated
- ā 2 OAuth Providers (Google + HypeChats)
- ā Unlimited Links - No restrictions
- ā Unlimited Bio Pages - One per user
- ā 12MB Image Upload - High quality support
- ā 6 Gallery Images - Perfect portfolio showcase
- ā 100% Responsive - Mobile-first design
- PHP 7.4 or higher (PHP 8.x recommended)
- MySQL 5.7 or higher (or MariaDB 10.2+)
- Apache/Nginx with mod_rewrite or equivalent
- Git (optional, for auto-updates)
- SSL Certificate (recommended for OAuth)
- PDO
- PDO_MySQL
- cURL
- JSON
- OpenSSL
- GD (for image processing)
- mbstring
- fileinfo
- RAM: 512MB minimum, 1GB+ recommended
- Storage: 1GB minimum (grows with uploads)
- Bandwidth: Unlimited or generous limit
git clone https://github.com/david0154/hyls.git
cd hylschmod 755 uploads/ chmod 755 uploads/bio/ chmod 755 uploads/bio/gallery/ chmod 755 uploads/qr/
For Apache: Ensure .htaccess is enabled in your virtual host:
<Directory "/path/to/hyls"> AllowOverride All Require all granted </Directory>
For Nginx: Add to your server block:
server { listen 80; server_name yourdomain.com; root /path/to/hyls; index index.php; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~ /\.ht { deny all; } }
Visit: https://yourdomain.com/install.php
The installer will:
- ā Check system requirements
- ā Test PHP extensions
- ā Create database configuration
- ā Set up all database tables
- ā Create admin account
- ā Configure initial settings
- ā Generate security keys
Edit config.php after installation:
<?php // Database Configuration define('DB_HOST', 'localhost'); define('DB_NAME', 'hyls_db'); define('DB_USER', 'your_username'); define('DB_PASS', 'your_password'); // Site Configuration define('SITE_URL', 'https://yourdomain.com'); define('SITE_NAME', 'HYLS'); // Google OAuth define('GOOGLE_CLIENT_ID', 'your_google_client_id.apps.googleusercontent.com'); define('GOOGLE_CLIENT_SECRET', 'your_google_client_secret'); define('GOOGLE_REDIRECT_URI', 'https://yourdomain.com/google-auth.php'); // HypeChats OAuth define('APP_ID', 'your_hypechats_app_id'); define('APP_SECRET', 'your_hypechats_app_secret'); define('REDIRECT_URI', 'https://yourdomain.com/auth.php'); // Email Configuration (Optional) define('SMTP_HOST', 'smtp.gmail.com'); define('SMTP_PORT', 587); define('SMTP_USERNAME', '[email protected]'); define('SMTP_PASSWORD', 'your_app_password'); define('SMTP_FROM_EMAIL', '[email protected]'); define('SMTP_FROM_NAME', 'HYLS'); ?>
After successful installation:
# Delete or move the installer rm install.php # Or move to a secure location mv install.php install.php.bak
- Visit Google Cloud Console
- Create Project or select existing one
- Enable APIs:
- Google+ API
- Google People API
- Create Credentials:
- OAuth 2.0 Client ID
- Application Type: Web Application
- Add Authorized Redirect URIs:
https://yourdomain.com/google-auth.php - Copy Credentials to
config.php:- Client ID
- Client Secret
- Visit HypeChats Developer Portal
- Login/Sign up at HypeChats
- Create New Application
- Set Redirect URI:
https://yourdomain.com/auth.php - Copy to
config.php:- App ID
- App Secret
- Login as admin
- Go to Admin Panel ā Settings
- Enter SMTP details
- Click "Send Test Email" to verify
- Save settings
Edit config.php with your SMTP details.
Popular SMTP Providers:
Gmail:
define('SMTP_HOST', 'smtp.gmail.com'); define('SMTP_PORT', 587); define('SMTP_USERNAME', '[email protected]'); define('SMTP_PASSWORD', 'your_app_password'); // Use App Password, not regular password
SendGrid:
define('SMTP_HOST', 'smtp.sendgrid.net'); define('SMTP_PORT', 587); define('SMTP_USERNAME', 'apikey'); define('SMTP_PASSWORD', 'your_sendgrid_api_key');
Mailgun:
define('SMTP_HOST', 'smtp.mailgun.org'); define('SMTP_PORT', 587); define('SMTP_USERNAME', '[email protected]'); define('SMTP_PASSWORD', 'your_mailgun_password');
Microsoft 365:
define('SMTP_HOST', 'smtp.office365.com'); define('SMTP_PORT', 587); define('SMTP_USERNAME', '[email protected]'); define('SMTP_PASSWORD', 'your_password');
- Visit:
https://yourdomain.com/update.php - Click "Update Now"
- System will:
- ā Fetch latest changes from GitHub
- ā Run database migrations
- ā Update all files
- ā Clear cache
cd /path/to/hyls
git pull origin mainThen visit: https://yourdomain.com/install.php?mode=migrate
- Download latest release from GitHub
- Extract files
- Upload to server (overwrite existing)
- Visit:
https://yourdomain.com/install.php?mode=migrate
- Login to your dashboard
- Enter your long URL
- (Optional) Customize short code
- (Optional) Add password protection
- (Optional) Set expiration date
- Click "Shorten"
- Copy and share your short link!
Short link format: yourdomain.com/abc123
- Go to Dashboard ā Bio Link
- Basic Information:
- Display name
- Bio description (supports line breaks)
- Contact email
- Phone number
- Toggle contact visibility
- Images:
- Upload profile picture (crop to circle)
- Upload cover image (16:9 recommended)
- Or set video as background
- Social Links:
- Add links for 29+ platforms
- Enable/disable individual links
- Links appear with platform icons
- Gallery:
- Upload up to 6 images
- Perfect for portfolio showcase
- Images display in grid layout
- Videos:
- Add YouTube, Facebook, Instagram, TikTok, Vimeo, Dailymotion
- Videos embed with play buttons
- Thumbnails auto-generated
- Theme:
- Choose brand color (hex or RGB)
- Applies to buttons and links
- Click "Save Changes"
- View your bio:
yourdomain.com/bio.php?u=your_username
- Admin Panel ā Advertisements
- Click "Create New Ad"
- Fill in details:
- Ad title
- Description
- Target URL
- Upload ad image
- CTA button text
- Set display order
- Enable ad
- Ads appear on:
- Bio pages
- Redirect pages (optional)
- Dashboard ā Your Links
- Click "View Stats" on any link
- See:
- Total clicks
- Click timeline
- Referrer sources
- Browser/device breakdown
- Geographic data
- Go to any shortened link
- Click "Generate QR Code"
- QR code displays instantly
- Right-click to save
- Use for:
- Print materials
- Business cards
- Posters and flyers
- Product packaging
hyls/
āāā š admin/ # Admin Panel
ā āāā index.php # Dashboard
ā āāā users.php # User management
ā āāā links.php # Link management
ā āāā settings.php # Settings
ā āāā advertisements.php # Ad management
ā āāā analytics.php # Analytics
ā
āāā š assets/ # Static files
ā āāā css/style.css # Stylesheets
ā āāā js/main.js # JavaScript
ā āāā images/ # Images
ā āāā favicon.ico # Favicon
ā
āāā š docs/ # Documentation
ā āāā API.md
ā āāā INSTALLATION.md
ā āāā FEATURES.md
ā
āāā š includes/ # Core classes
ā āāā db.php # Database
ā āāā functions.php # Helpers
ā āāā image_processor.php # Images
ā āāā mailer.php # Email
ā āāā video_embed.php # Videos
ā
āāā š install/ # Installation
ā āāā install.php
ā āāā database.sql
ā
āāā š uploads/ # User uploads
ā āāā bio/
ā ā āāā gallery/
ā āāā qr/
ā
āāā š .htaccess # Apache config
āāā š .gitignore # Git ignore
āāā š ad-page.php # Ad page
āāā š auth.php # HypeChats OAuth
āāā š bio.php # Public bio page
āāā š biolink.php # Bio management
āāā š config.sample.php # Config template
āāā š dashboard.php # User dashboard
āāā š delete_link.php # Delete handler
āāā š edit_bio.php # Bio editor
āāā š google-auth.php # Google OAuth
āāā š index.php # Landing page
āāā š login.php # Login page
āāā š logout.php # Logout
āāā š r.php # Redirect
āāā š shorten.php # Shorten API
āāā š update.php # Auto-update
āāā š LICENSE # MIT License
āāā š README.md # This file
āāā š UPGRADE_INSTRUCTIONS.md # Upgrade guide
- ā Password Hashing - bcrypt with salt for user passwords
- ā SQL Injection Protection - PDO prepared statements everywhere
- ā XSS Prevention - htmlspecialchars() on all outputs
- ā CSRF Protection - Token-based form validation
- ā Session Security - Secure session handling with timeout
- ā OAuth 2.0 - Industry-standard authentication
- ā Link Password Protection - Encrypted passwords for sensitive links
- ā File Upload Validation - Strict image type checking
- ā SQL Timeout Protection - Query timeout limits
- ā Brute Force Protection - Login attempt limiting
- ā HTTPS Enforcement - Redirect to secure connection
- ā Input Sanitization - Filter all user inputs
- ā Directory Protection - .htaccess security rules
Error: Database connection failed
Solution:
- Verify database credentials in
config.php - Ensure MySQL service is running
- Check if user has proper permissions
- Test connection:
mysql -u username -p database_name
Error: Redirect URI mismatch
Solution: Ensure redirect URI in Google Console matches EXACTLY:
https://yourdomain.com/google-auth.php
Note: No trailing slash, must be HTTPS in production
Error: Invalid client
Solution:
- Check Client ID is correct
- Verify Client Secret has no extra spaces
- Ensure OAuth consent screen is published
Error: Failed to upload image
Solution: Check permissions:
chmod 755 uploads/ chmod 755 uploads/bio/ chmod 755 uploads/bio/gallery/ chmod 755 uploads/qr/
Check ownership:
chown www-data:www-data uploads/ -R
# Or for Apache:
chown apache:apache uploads/ -RError: File too large
Solution:
Increase PHP limits in php.ini:
upload_max_filesize = 12M post_max_size = 12M memory_limit = 128M
Error: Git not found
Solution: Install Git:
# Ubuntu/Debian sudo apt-get install git # CentOS/RHEL sudo yum install git # Or use manual update method
Error: Permission denied during update
Solution:
chown www-data:www-data /path/to/hyls -R chmod 755 /path/to/hyls -R
Error: SMTP connection failed
Solution:
- Verify SMTP credentials
- Check firewall allows port 587 (or 465)
- For Gmail: Enable "Less secure app access" or use App Password
- Test with telnet:
telnet smtp.gmail.com 587
Error: Video not displaying
Solution:
- Ensure video URL is public
- Check video platform allows embedding
- Verify video ID is extracted correctly
- Test embed code in standalone HTML
-- Add indexes for better performance CREATE INDEX idx_short_code ON links(short_code); CREATE INDEX idx_user_id ON links(user_id); CREATE INDEX idx_created_at ON links(created_at);
// Enable OPcache in php.ini opcache.enable=1 opcache.memory_consumption=128 opcache.max_accelerated_files=10000
Use CDN for static assets:
<!-- Replace local assets with CDN --> <link rel="stylesheet" href="https://cdn.yourdomain.com/css/style.css">
- Compress images before upload
- Use WebP format where possible
- Implement lazy loading
Contributions are welcome! Here's how:
- Check if bug already exists in Issues
- Create new issue with:
- Clear description
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if applicable
- Your environment (PHP version, OS, etc.)
- Open a Feature Request
- Describe:
- Use case
- Expected behavior
- Mockups if available
- Fork the repository
- Create feature branch:
git checkout -b feature/AmazingFeature
- Commit your changes:
git commit -m 'Add AmazingFeature' - Push to branch:
git push origin feature/AmazingFeature
- Open Pull Request
- Follow PSR-12 coding standard
- Comment complex logic
- Write descriptive commit messages
- Test before submitting
- Update documentation if needed
This project is licensed under the MIT License - see the LICENSE file for details.
What this means:
- ā Commercial use allowed
- ā Modification allowed
- ā Distribution allowed
- ā Private use allowed
ā ļø License and copyright notice required- ā No warranty provided
- ā No liability accepted
David Studioz
- š GitHub: @david0154
- š§ Email: Contact via GitHub
- š Website: David Studioz
- š» Project: HYLS
- PHP - Server-side scripting
- MySQL - Database management
- JavaScript - Client-side interactivity
- Font Awesome - Icon library
- Google APIs - OAuth authentication
- HypeChats - Social OAuth platform
- Linktree - Bio link concept
- Bitly - URL shortening
- TinyURL - Simple short links
- All contributors and testers
- Open source community
- Users providing feedback
- š Documentation: GitHub Wiki
- š Report Bug: GitHub Issues
- ⨠Request Feature: GitHub Issues
- š¬ Discussions: GitHub Discussions
- š Changelog: Releases
- š”ļø Security: Report via GitHub Security tab
- REST API with authentication
- Webhooks for events
- Custom domains support
- Team collaboration features
- Link folders and categories
- Advanced analytics dashboard
- Dark mode
- Multi-language support
- Mobile apps (iOS & Android)
- Browser extensions
- A/B testing for links
- Link retargeting pixels
- Conversion tracking
- Branded short domains
- Link scheduling
- Bulk link import/export
- Two-factor authentication
- API rate limiting
Q: Is HYLS free?
A: Yes! HYLS is 100% free and open source under MIT License.
Q: Can I use HYLS commercially?
A: Absolutely! Use it for personal or commercial projects.
Q: Do you offer hosting?
A: No, but you can deploy on any PHP hosting (shared/VPS/cloud).
Q: What's the maximum file size for uploads?
A: Default is 12MB, configurable in PHP settings.
Q: How many links can I create?
A: Unlimited! No restrictions on link creation.
Q: Does it support custom domains?
A: Not yet, planned for version 2.0.
Q: Can I self-host?
A: Yes! That's the whole point. Full control on your server.
Q: How many social platforms are supported?
A: 29+ major social platforms plus custom links.
Q: Can I embed videos from any platform?
A: Currently supports 6 platforms: YouTube, Facebook, Instagram, TikTok, Vimeo, Dailymotion.
Q: Is there an API?
A: API is coming in version 2.0.
- ā Star this repo to get notifications
- šļø Watch for new releases
- šØāš» Follow @david0154
If you find HYLS useful, consider:
- ā Starring the repository
- š Reporting bugs
- š” Suggesting features
- š„ Sharing with others
- š Writing tutorials
- š Contributing code
Made with ā¤ļø by David
Last Updated: January 8, 2026 | Version 1.5