VYRAL - The minimalist social engineVYRAL - The minimalist social engine
Self-hosted PHP social network script. Single-file, zero bloat. Launch your own community in under 5 minutes.VYRAL - The minimalist social engine
Self-hosted PHP social network script. Single-file, zero bloat. Launch your own community in unde...
Overview
🚀 Launch Your Own Social Network in Under 5 Minutes
Tired of paying monthly fees for bloated SaaS platforms you'll never truly own? VYRAL is a complete, production-ready social media platform packed into a single PHP file with SQLite — no MySQL, no frameworks, no DevOps nightmares. Upload it, configure a few lines, and your community is live. It's that simple.
Whether you're building a niche community, a private network for your team, a Twitter(X)/Bluesky alternative, or a white-label social platform for clients — VYRAL gives you 100% ownership, zero recurring costs, and unlimited users. One purchase. Forever yours.
✨ Why VYRAL Stands Out
🔥 Single-File Architecture — The entire platform lives in one clean index.php file. No Composer, no npm, no webpack, no build steps. If you can upload a PHP file, you can run VYRAL.
⚡ SQLite-Powered — Zero database server setup. No MySQL, MariaDB, or PostgreSQL required. Your entire platform runs on simple, portable database files.
🛡️ Security-First — CSP headers, CSRF protection, 4-layer bot defense (no CAPTCHA needed), IP/user banning, disposable email blocking, and bad-word auto-flagging — all built in.
🧠 Smart Trending Algorithm — A precomputed, time-decaying score weighing likes, comments, views, and hashtag relevance, with personalised interest-based feed boosting for every user.
🌍 Multi-Language Ready — Ships with English, Spanish, French, and Japanese translations. Add any language by creating a single PHP file.
📲 PWA-Ready — Users can install your platform as a native app on their phones. Zero app-store fees. Zero approval headaches.
🎯 Perfect For
- Entrepreneurs launching a niche social network or online community.
- Agencies selling white-label social platforms to clients.
- Startups wanting a Twitter/Bluesky alternative without giving away equity.
- Creators building a paid community around their audience.
- Developers who want a clean, hackable codebase to customise freely.
- Companies needing a private internal social platform.
- Anyone escaping the SaaS subscription trap.
👉 DEMO
Features
💬 Core Social Features
- ✅ Posts with rich-text formatting (bold, italic, simple markdown)
- ✅ Comments with likes, replies, and mentions
- ✅ Likes on both posts and comments with real-time counts
- ✅ Follow / Unfollow with private account support
- ✅ @Mentions with auto-linking and notifications
- ✅ #Hashtags with search, trending, and discovery
- ✅ Bookmarks for saving posts for later
- ✅ Post Pinning on user profiles
- ✅ View Counters with anti-abuse protection
- ✅ Post Sharing with internal quote-post embedding
- ✅ Real-Time Notifications with customisable preferences
📊 Polls & Interactive Content
- ✅ Create timed polls with up to 4 options
- ✅ Live results with animated percentage bars
- ✅ Auto-close at expiry
- ✅ Creator cannot self-vote (authentic engagement)
🔥 Smart Feed Algorithms
- ✅ Trending Feed —Smart scoring
- ✅ Personalised Home Feed — Followed users + interest-based boosting
- ✅ Pure Explore Feed — Discovery without social graph bias
- ✅ Precomputed scores with incremental updates (no slow queries)
🎨 Design & UX
- ✅ 8 Beautiful Themes included out of the box
- ✅ Dark & Light Mode with auto-detection
- ✅ Fully Responsive — mobile, tablet, and desktop
- ✅ PWA Support — installable as a native app
- ✅ Custom Themes — change the look with a single CSS file
🔍 Search & Discovery
- ✅ Full-text search across posts, users, and hashtags
- ✅ Auto-saved search history (last 20 queries)
- ✅ Type-ahead suggestions
- ✅ Trending hashtag discovery in sidebar
🛡️ Admin & Moderation
- ✅ Full Admin Panel with platform analytics
- ✅ 30-Day Charts — users, posts, comments
- ✅ User Management — ban, verify, promote to mod/admin
- ✅ Content Reports Queue with resolve/dismiss/delete actions
- ✅ Bad-Word Auto-Flagging with customisable word list
- ✅ IP Tracking for abuse prevention
- ✅ Sponsored Posts Manager — 3 rotating ad slots built-in
📈 User Analytics Dashboard
- ✅ Total reach (views on all posts)
- ✅ Engagement metrics (likes received)
- ✅ Follower count
- ✅ Interactive 30-day trend charts
🌐 Internationalization (i18n)
- ✅ English, Spanish, French, Japanese included
- ✅ Add new languages with one PHP file
- ✅ In-app language switcher
- ✅ Full fallback safety
🔗 Rich Media Embeds
- ✅ YouTube, Vimeo, Twitch, Spotify auto-embeds
- ✅ Image and GIF previews
- ✅ Open Graph link preview cards (server-side fetched & cached)
- ✅ Internal post/comment cross-linking with quote embeds
🤖 4-Layer Bot Protection
- ✅ No CAPTCHA services required — everything is self-hosted
✉️ Email System
- ✅ 4 Providers — Mailjet, Brevo (Sendinblue), MailerSend, native PHP mail()
- ✅ Email verification on signup
- ✅ Password reset flow
- ✅ Daily/weekly notification digests (via cron)
- ✅ Report alerts to admins
- ✅ Beautiful HTML email templates
- ✅ Disposable email blocking (auto-updated blocklist)
🚫 Content Moderation
- ✅ User reporting (spam, harassment, hate speech, misinformation, NSFW)
- ✅ NSFW post tagging with content warnings
- ✅ Post locking (freeze comments)
- ✅ Bad-word auto-report system
- ✅ Email notifications to admins
👤 Rich User Profiles
- ✅ Bio, birthdate, location (country selector), timezone
- ✅ Pinned posts
- ✅ Private accounts (followers-only)
- ✅ Verified badge system
- ✅ Username change cooldown
- ✅ Activity history log
- ✅ Verified users get system perks
⚙️ User Settings
- ✅ Notification preferences (toggle per type)
- ✅ Email digest frequency
- ✅ Blocked users management
- ✅ Password change
- ✅ Email change with re-verification
- ✅ Privacy toggle
- ✅ Theme selection
🔒 Privacy & Security
- ✅ Private accounts (followers-only visibility)
- ✅ Bidirectional user blocking
- ✅ Timed IP banning
- ✅ Timed user banning
- ✅ CSRF protection with token rotation
- ✅ Content Security Policy headers
- ✅ X-Frame-Options, X-Content-Type-Options
- ✅ Secure session cookies
- ✅ Rate limiting (per IP + per session)
⚡ Performance Engineered
- ✅ SQLite WAL mode for concurrent reads during writes
- ✅ Prepared statement caching
- ✅ In-memory user/post/engagement caching
- ✅ Batched prefetch queries
- ✅ Precomputed trending scores
- ✅ Probabilistic background cleanup
- ✅ Configurable PRAGMA tuning for VPS/Dedicated deployments
- ✅ Handles thousands of concurrent users on a modest VPS
💰 Monetisation Ready
- ✅ Sponsored Posts System — 3 configurable dynamic ad slots
- ✅ Automatic Rotation
- ✅ Dedicated admin manager
- ✅ Desktop sidebar ad banner (300×300px)
- ✅Start earning from day one
Requirements
PHP: 8.3+ / With pdo_sqlite, mbstring, openssl, curl
SQLite: 3.40+ / Bundled with PHP
Web Server: Any Apache, Nginx, LiteSpeed, Caddy
Disk Space: ~50 MB / Grows with your community
RAM: 128 MB+ / 256 MB+ recommended for production
✅ No MySQL, MariaDB, or PostgreSQL required. Everything runs on SQLite.
Instructions
🚀 Installation (Under 5 Minutes)
- Upload
the filesto your web server. - Secure the
db/folder with the included Nginx (if used) rules (full README provided). - Configure the
BASIC CONFIGURATIONblock inindex.php(app name, email, throttles etc.) - Visit your domain — the first registered account automatically becomes admin.
That's it. No command line. No build tools. No database setup. Just upload and go.
Other items by this author
| Category | Scripts & Code / PHP Scripts / Social Networking |
| First release | 10 April 2026 |
| Last update | 21 April 2026 |
| Software version | PHP 8.3, PHP 8.4 |
| Files included | .php, .css, Javascript .js |
| Tags | comments, Social Media, php script, social, social network, community, discussion, forum, poll, web app, PWA |








