Download the PHP package nwnuyhs/flarum-for-you without Composer

On this page you can find all versions of the php package nwnuyhs/flarum-for-you. 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-for-you

For You for Flarum

Flarum 2

English | 简体中文

A For you discussion list for Flarum 2, modelled on X's open-source "For You" algorithm (xai-org/x-algorithm). Each refresh brings up a different set of discussions, so readers see more of the forum than the latest few threads.

Made by X Theme, an X-style theme for Flarum. It also works without the theme, on any Flarum 2 forum. Live demo: https://x.it6.cc.

Desktop Phone

How discussions are ranked

  1. Candidates: the list can draw from the 600 most recently active discussions the page allows (same tag, same visibility), plus the 100 discussions with the most replies.
  2. Filters: the list leaves out the reader's own discussions, discussions they ignore, and tags they hide or ignore. One exception, as on X: a discussion the reader started in the last hour goes to the top of their list, so they see it right after posting.
  3. Value: each discussion gets a weighted sum of how people engaged with it. The weights come from x-algorithm (home-mixer/params/param.rs):

    Signal Weight
    reply 5.0
    like 0.708
    bookmark 2.118
    view 0.274
    author replied back 15.0 (up to 3)

    The sum is then log-scaled.

  4. Multipliers:
    • Freshness: the score halves every 36 hours and never drops below 0.05, so good older discussions still come up.
    • New discussions: fewer than 30 views and under 4 days old ×1.5, so they get a chance.
    • Recent reply: a reply in the last day ×1.25.
    • Following: a followed author ×1.6 (ianm/follow-users) and a followed tag ×1.3 (fof/follow-tags).
    • Tag interest: up to ×1.8 for the tags the reader reads, replies and likes in most (last 180 days).
    • Reading state: read to the end ×0.3, new replies since the last read ×1.1.
    • Already shown in an earlier batch: within 3 hours ×0.05, within 24 hours ×0.3, within 3 days ×0.7.
  5. Randomness: ×0.8–1.25, so no two refreshes are the same.
  6. Author diversity: each further discussion by the same author in the list is scaled by (1 − 0.25) × 0.5^k + 0.25, x-algorithm's diversity multiplier.

The first page builds a new batch of 300 discussions. Scrolling further reads from the same batch (cached for 30 minutes), so nothing repeats or goes missing while scrolling. Guests are told apart by their browser session.

Use

It uses these extensions when they are installed, and works without them: flarum/likes, fof/bookmarks, ianm/follow-users, fof/follow-tags, and X Theme's view counts.

Install

Then enable For You in the admin panel.

Update

Links

MIT licensed.


All versions of flarum-for-you with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 nwnuyhs/flarum-for-you contains the following files

Loading the files please wait ...