Download the PHP package brynforum/top-posters without Composer

On this page you can find all versions of the php package brynforum/top-posters. 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 top-posters

brynforum/top-posters

Latest Version on Packagist Total Downloads

A Flarum extension that adds top-posters leaderboards to the forum index. Shows the most active members of the past month and all time, side-by-side on desktop, stacked-and-collapsible on mobile.

Built and used in production by BrynForum.

Features

Installation

Enable Top Posters under Admin → Extensions.

Configuration

Admin → Top Posters:

Setting Default Notes
Show "This Month" board on Hide the monthly leaderboard.
Show "All Time" board on Hide the all-time leaderboard.
"This Month" list length 10 1 – 50.
"All Time" list length 10 1 – 50.
"This Month" heading Top Posters This Month
"All Time" heading Top Posters of All Time
Exclude administrators off Hides users in the built-in Administrators group.
Exclude moderators off Hides users in any group that holds the discussion.hidePosts permission.

The "Exclude moderators" check uses a permission, not a group name — so it works the same regardless of whether a forum's mod group is called Mods, Staff, Editors, etc.

API

GET /api/brynforum/top-posters?period=month&limit=10 GET /api/brynforum/top-posters?period=all&limit=10

Public, no auth. Returns:

The query excludes:

Ties on post_count break by username ascending (case-insensitive), so the order is stable across requests.

Recommended cache rule

If you also run brynforum/api-cache, add:

Field Value
Path pattern #^/api/brynforum/top-posters$#
TTL 600 (10 minutes — sensible default)
Scope public

That collapses the leaderboard SQL to once per ten minutes regardless of how many widget renders hit the endpoint.

Mobile responsiveness

The two cards render in a flex row on desktop (>= 768 px) and stack on mobile. On mobile, the body of each card is hidden behind a tap-to-expand header. The state is purely CSS-driven, so resizing a desktop window down behaves correctly without a JS resize listener.

Replacing afrux/top-posters-widget

This extension is intentionally similar in purpose to afrux/top-posters-widget. The differences:

afrux brynforum
Layout Right-side widget area (needs afrux/forum-widgets-core) Inline above discussion list
Mobile Hidden inside the widget panel Accordion, always visible above the fold
Periods This Month only This Month + All Time (each toggleable)
Configurable list length No Yes (1 – 50, per board)
Staff exclusion Yes Yes
Dependencies afrux/forum-widgets-core Flarum core only

If you switch from afrux, disable the old widget first to avoid duplicate boards.

Contributing

Issues and PRs welcome. Keep changes small and focused; file an issue before any large PR.

License

MIT © BrynForum


All versions of top-posters with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^1.8.0
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 brynforum/top-posters contains the following files

Loading the files please wait ...