Download the PHP package tryhackx/flarum-cover-studio without Composer

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

Cover Studio

License Latest Stable Version

A Flarum extension that adds profile covers with a repositionable focal point ("pos-crop") and zoom, fully integrated with the FoF Upload media manager. Optionally, the same focal-point editing is available for avatars.

Features

Profile covers

Media manager lifecycle

Cover files are regular FoF Upload files owned by the profile owner:

Avatar focal point (optional)

When enabled, avatar uploads keep the original image in the user's media manager, and the actual avatar is re-cropped server-side from that original whenever the user adjusts the focal point or zoom. The avatar source can also be picked straight from "My Media". Zooming out composes the avatar on a blurred backdrop of the same image. The avatar remains a 100% standard Flarum avatar (all sizes, HiDPI variants, e-mails, notifications) — no CSS hacks, no compatibility issues. Repositioning never requires a re-upload.

Requirements

Installation

Then enable Cover Studio in the admin panel.

Updating

Settings

Setting Default Description
Maximum upload size (KB) 2048 Limit for cover / avatar-original uploads. The global FoF Upload limit also applies — the lower of the two wins.
Cover height on profiles (px) 220 Hero height when a cover is set.
Cover height on mobile (px) 160 Hero height on phones.
Readability overlay Gradient Dark layer over covers so text stays legible.
Show covers on user hover cards On Uses the lightweight thumbnail.
Show covers in the user directory On Applies when FoF User Directory is enabled.
Allow choosing a cover from My Media On Adds the "Choose from My Media" button.
Enable avatar focal point Off Avatar pos-crop as described above.
Default cover URL — Optional image for users without a cover.

Permissions

Migrating from sycho/flarum-profile-cover

Existing covers can be imported into Cover Studio (each one becomes a proper FoF Upload file in the owner's media manager):

The command is non-destructive: legacy files and the users.cover column are left untouched. Once you have verified the result, disable sycho/flarum-profile-cover. --force re-imports even for users who already have a Cover Studio cover.

How focal point & zoom work

The focal point is stored as x/y percentages and the zoom as a factor (1–4). On every surface the cover is rendered with plain CSS:

The editor preview uses the exact same math, so what you see while dragging is what gets rendered — at any container size or aspect ratio. For avatars, the square crop window (min(width, height) / zoom, centered on the focal point and clamped to the image bounds) is applied server-side from the stored original.

Performance & scale

Cover Studio is built to stay cheap on large forums (hundreds of thousands to millions of users):

Security notes

FAQ

Why is there no thumbnail for my covers? Thumbnails are generated by FoF Upload — check Generate thumbnails in its settings. Without them, hover cards simply use the full image.

Does zooming reduce quality? No file is modified for covers — zoom is purely a display transform of the full-resolution image. For avatars the crop is re-generated from the stored original at full quality.

What happens when the user deletes the cover file in My Media? The cover disappears everywhere immediately. "Remove cover" in the editor, by contrast, only detaches it — the file stays in the media manager.

License

MIT © TryHackX


All versions of flarum-cover-studio with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.0.0-rc.1
fof/upload Version ^2.0.0-beta.5
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 tryhackx/flarum-cover-studio contains the following files

Loading the files please wait ...