Download the PHP package ernestdefoe/flarum-showcase without Composer

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

Flarum Showcase

Floxum Version Downloads Review License

A tag-driven feature rail for the Flarum 2 forum index. Pick a set of primary tags and a set of secondary tags in the admin panel — any discussion that carries one from each appears as a card above the discussion list, with the cover image pulled from the linked GitHub repository's social-preview when the opening post embeds a gh-readme shortcode.

License Flarum PHP TypeScript

What it does

Designed for support sites where each thread is "about" a specific extension or theme:

A discussion shows up in the showcase rail iff it carries at least one whitelisted primary tag AND at least one whitelisted secondary tag. Empty whitelist on either side ⇒ nothing qualifies (admin must explicitly opt in).

Features

Compatibility

Install

Then enable Showcase from the admin panel's Extensions page.

Configure

Admin → Extensions → Showcase exposes:

Setting What it does
Display style Carousel (default) or Grid.
Qualifying primary tags Multi-select tag picker, restricted to primary tags. A discussion needs one of these to qualify.
Qualifying secondary tags Multi-select tag picker, restricted to secondary tags. A discussion needs one of these too (AND, not OR).
Maximum cards Hard cap on how many cards render (default 12).
Sort order Latest activity, most replied, or pinned first then latest.

Cover image resolution

For each qualifying discussion, the backend reads the opening post's raw content and runs a regex looking for [gh-readme repo="owner/name"]. If found, the cover URL is set to https://opengraph.githubassets.com/1/owner/name — the same image GitHub serves as the repo's social preview. Otherwise the frontend renders the hashed-gradient fallback.

This means ernestdefoe/gh-readme does not have to be installed locally for showcase to function — Showcase only parses the shortcode string, never invokes any gh-readme PHP. But you'll want gh-readme installed if you want the shortcodes to actually render as live READMEs inside the discussions.

Development

The TypeScript path mapping in js/tsconfig.json resolves flarum/* from ../vendor/flarum/core/js/dist-typings/ and flarum/tags/* from ../vendor/flarum/tags/js/dist-typings/. Run composer install at the repo root first.

Project layout

License

MIT


All versions of flarum-showcase with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.0
flarum/tags 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/flarum-showcase contains the following files

Loading the files please wait ...