peopleinside/fla-polling 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

peopleinside/fla-polling

Composer 安装命令:

composer require peopleinside/fla-polling

包简介

Lightweight real-time polling for Flarum 2.0 - No WebSocket, No SSH required

README 文档

README

Flarum 2.0 License

A lightweight real-time polling extension for Flarum 2.0 that provides instant updates for new discussions and notifications without requiring WebSockets, SSH access, or Node.js.

🚀 Features

  • No WebSocket required - Works with standard HTTP requests
  • No SSH or Node.js - Perfect for shared hosting
  • Self-hosted - Complete control, no external dependencies
  • Lightweight - Minimal server resources consumption
  • Real-time updates - Check for new discussions and notifications every 10 seconds (configurable)
  • Visual notifications - Banner for new discussions and badge for notification count
  • Zero configuration - Install and it just works
  • 🌍 Multilingual support - English and Italian included (easy to add more languages)

📋 How It Works

Instead of maintaining a persistent WebSocket connection, FLA Polling uses HTTP polling:

  1. Every 10 seconds, the browser sends a lightweight AJAX request to the server
  2. The server checks the database for the latest discussion ID and unread notification count
  3. If there are changes, the UI updates automatically:
    • A banner appears when new discussions are posted
    • The notification badge updates with the new count

This approach is extremely efficient and works on any standard LAMP/LEMP stack.

Performance Impact

For a forum with 100 concurrent users and 10-second polling interval:

  • 10 HTTP requests per second to your server
  • Each request executes 2 simple database queries (less than 1ms each)
  • Total overhead: negligible (equivalent to a few page loads per minute)

📦 Installation

Via Composer (Recommended)

composer require peopleinside/fla-polling

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固