Download the PHP package ernestdefoe/cadence without Composer

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

Cadence

See a member's rhythm, not just their volume.

An activity map on every profile — and, if you want it, a compact trace beside every post and on user cards.

Flarum


Press any square and it tells you what happened that day: 2 things on September 7, 2026 — 1 discussion started · 1 reply.

On a phone the map scrolls sideways inside the profile card, and it opens on the newest weeks:

Why not just copy GitHub's graph

Because GitHub's has six problems, and on a forum they matter more than they do on a code host.

Where it shows

Placement Default
The full map on member profiles On
A 26-week sparkline beside every post Off
A sparkline on user cards Off

🚨 The sparklines cost no extra requests. They read an attribute that rides along on the user the page had already loaded. A placement that appears once per post cannot fetch its own data — thirty posts would be thirty requests, which is how a shared host runs out of database connections and returns 500 for the whole forum rather than for the decoration that caused it.

Daily streaks

A flame for every member who comes back tomorrow.

A streak counts the days in a row a member shows up — in their timezone, not the server's — and turns it into a flame: after their name in posts, on their card, in the header and on a leaderboard where the next rival is always within reach.

🚨 It costs your forum one query per page, however many flames are on it. The flame rides along on users the page already loaded. The leaderboard, the profile tab and the header menu load their code only when opened.

For the "at risk" and "embers" alerts, Flarum's scheduler must be running (* * * * * php flarum schedule:run). Without it, flames still go out on time — only those two alerts wait.

Don't want streaks? Turn off Daily streaks at the top of Cadence's settings. That one switch removes everything (the flames, header button, Streaks link, leaderboard, profile tab, widgets, alerts and emails) and stops counting, while the activity map keeps working. Nothing is deleted, so turning it back on picks up where you left off.

Only activity the map's audience could see counts toward a streak, and in visit mode a member who hides their online status keeps their visit days to themselves.

Settings

Admin → Cadence:

Installation

Then enable Cadence in the admin. Enabling returns at once: building every member's activity map and flame from your forum's history happens in the background, a slice of members at a time —

On a big forum, or to watch it finish, run it yourself:

It shows a progress bar, resumes a rebuild that is pending or was interrupted (stop it with Ctrl+C and run it again any time), and with --fresh starts again from the first member. As a guide, 500,000 posts and 15,000 members take about 15 seconds on MySQL.

Rebuilds the posts and likes buckets from your forum's own tables, then every flame. Safe to re-run.

Only activity a guest could see is counted — or, on a forum guests cannot open, activity an ordinary member could see. Posts in staff-only tags, private discussions and direct messages never reach a map, because the map is one set of counts shown to everyone who can open the profile. Change who can see a tag and run this again, so activity already counted follows the new permissions.

🚨 Reactions and best answers cannot be rebuilt — neither records when it happened, so those two accumulate from the day you install rather than backfilling. Posts and likes rebuild exactly.

Works alongside Calendar

ernestdefoe/calendar has a profile heatmap of its own. When Cadence is installed and showing on profiles, Calendar stands its own one down, so nobody ends up with two. Turn Cadence's profile placement off and Calendar's comes back.

How it stays cheap

Activity is rolled up into one row per member, per hour, per kind. A profile view is an indexed range scan over that member's own rows — it never aggregates over posts, which on a forum of any size is a table scan per profile visit.

Hourly rather than daily is what lets the day boundary be decided when the map is read, in the reader's timezone, instead of being baked into the data forever at the server's.

Requirements

Support

Licence

MIT.


All versions of cadence 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/cadence contains the following files

Loading the files please wait ...