Download the PHP package ernestdefoe/discussion-participants without Composer

On this page you can find all versions of the php package ernestdefoe/discussion-participants. 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 discussion-participants

Discussion Participants

Shows the avatars of everyone who has posted in a discussion, right in the discussion list, so people can see who is in a thread before they open it. Anyone the strip has no room for is counted on a badge that opens the full, paginated participant list.

Built for Flarum 2.

Existing forums need a one-time backfill — discussions that predate the extension have no participant data until it is built:

There is a Recalculate button on the extension's settings page that does the same job in the browser, for anyone without shell access.

What it does

An avatar strip on every discussion row, on its own line under the title by default — or inline beside the reply count, if you would rather rows stayed one line tall.

An overflow badge counting the participants the strip has no room for. Clicking it opens the full roster, ten per page, with each person's post count in that discussion and a link to their profile.

Profile cards on hover — the same card Flarum shows on post authors, on the same timing.

It follows the reader's theme, light or dark, and mirrors correctly under right-to-left languages.

And it stays honest as the discussion moves:

Settings

Setting Default What it does
Where to show them Under the title Under the title on its own line, or inline beside the reply count.
Avatars shown 6 How many avatars before the rest become an overflow badge. Up to 12.
Avatar size Medium Small (20px), medium (24px) or large (32px).
Order Who posted first Who posted first, who posted most, or who posted most recently.
The person who started the discussion Never show them Their avatar is already in the author column, so the strip leaves them out. Can also show them only if they replied as well, or always show them first.
Minimum participants 1 Discussions with fewer repliers get no strip, which keeps quiet lists clean.
Show the overflow badge On
Show a profile card on hover On
Limit to tags All tags Needs flarum/tags. Hidden entirely without it.

Notes on how it works

It does not touch discussions.participants_count. That column belongs to Flarum core. This extension keeps its own discussion_participants table and a small discussion_participant_meta table, and drops only those two on uninstall.

The discussion list stays at a fixed query count. Participants are a real Eloquent relation, eager loaded across the whole page with a per-discussion limit, so a page of twenty discussions costs two extra queries rather than twenty. Serving them as genuine users resources also means the same person appearing in ten discussions is sent once, and core's own avatar and profile card components render them untouched.

The overflow badge counts repliers, not participants. Whoever started the discussion already has their avatar on the row in core's author column, so counting them as hidden would overstate the badge by one on nearly every discussion.

Compatibility

Licence

MIT


All versions of discussion-participants with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.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 ernestdefoe/discussion-participants contains the following files

Loading the files please wait ...