Download the PHP package ekumanov/flarum-ext-forum-widgets without Composer

On this page you can find all versions of the php package ekumanov/flarum-ext-forum-widgets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package flarum-ext-forum-widgets

Forum Stats Widget for Flarum 2.0

A compact widget that displays online users, forum statistics (discussions, posts, users), and the latest registration — with configurable layout options for both desktop and mobile.

Screenshots

Desktop — Collapsed Desktop — Expanded
Mobile — Collapsed Mobile — Expanded

Features

Requirements

Installation

Then enable the extension in the admin panel under Extensions > Forum Stats Widget.

Note: Since Flarum 2.0 beta 8 (Laravel 13 upgrade), php flarum assets:publish is required after every composer require / composer update of any extension. Skipping it leaves stale compiled assets and can break the forum until the published assets match the running code.

Configuration

Admin Settings

Setting Default Description
Widget layout Full width Classic sidebar widget or full-width bar above discussions
Bar position (desktop) Inside the toolbar Where to place the bar relative to the toolbar (full-width only). Options: above, inside, or below
Bar position (mobile) Inside the toolbar Where to place the bar on mobile. Options: above, inside, or below the toolbar
Widget sidebar position -10 Controls sidebar position; lower values = further down (classic layout only)
Show expand/collapse toggle button Enabled Show the chevron button that expands/collapses the details panel. When disabled, the panel is still reachable by clicking the bar (full-bar mode), the online users cell (online-cell and classic modes), or via keyboard on the online cell
Expanded panel width (desktop) Online users cell only In full-width desktop mode, where the expanded panel anchors. Online users cell only: panel drops below the online users count; clicking the online cell expands. Full bar width: panel spans the full bar; clicking anywhere on the bar expands
Show online users Enabled Master toggle for the online users feature
Last seen interval (minutes) 5 How many minutes since last activity to consider a user online (paired with the presence heartbeat default)
Online users cache duration (seconds) 30 How long to cache the online users list
Enable presence heartbeat Enabled Whether logged-in users with a focused tab send a background ping every minute to keep their last-seen timestamp fresh (and on the forum index, also auto-refresh the widget data). Disable for zero background traffic
Show online guests Enabled Master toggle for guest counting. When on, each guest tab pings a small unauthenticated endpoint and the resulting count appears in the expanded panel as a dotted circle. Disabled when Show online users is off
Include guests in main online count Enabled When on, the bar (and panel section header) sums logged-in members and guests; the breakdown rows still list each component separately. Disabled when either Show online users or Show online guests is off
Show discussions/posts/users/latest All enabled Individual toggles for each statistic
Statistics cache duration (seconds) 600 How long to cache discussion/post/user counts and latest registration
Ignore private discussions in count Disabled Exclude private discussions from the count

Permissions

All permissions default to Everyone (including guests):

Caching

The extension maintains two separate online user caches:

  1. Privileged cache — For users with the "Always view user last seen time" permission (typically admins and moderators). Includes users who have hidden their online status.
  2. Regular cache — For all other users. Hidden users are excluded and shown only as a count.

Both caches share a hardcoded ceiling of 500 entries — well above what any real forum sees concurrently. Beyond that the panel falls back to a "+N more" overflow row.

Both caches default to a 30-second TTL. The forum statistics cache (discussions, posts, users, latest registration) has a separate 600-second TTL and is automatically invalidated when content is created or deleted.

Updating

Then hard-refresh the forum in your browser (Cmd+Shift+R on macOS, Ctrl+Shift+R on Windows/Linux) so it picks up the new CSS/JS.

assets:publish is required on Flarum 2.0 beta 8 and later — without it, the compiled CSS/JS on disk can fall out of sync with the running PHP and the forum may fail to render.

If the new version still doesn't appear:

Links

License

MIT


All versions of flarum-ext-forum-widgets with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^2.0
php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ekumanov/flarum-ext-forum-widgets contains the following files

Loading the files please wait ...