Download the PHP package walsgit/flarum-discussion-cards without Composer

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

Flarum Discussion Cards

License Latest Stable Version Total Downloads Donate here

A Flarum extension (Fork of @Dem13n's discussion-cards). Allows you to display discussions in the form of cards, the first image of the first post is used as a preview, if there are no images, a stub is displayed.

This fork makes changes and adds new features where you can now set custom cards settings per tag page (different default image along with number and width of primary cards). On the index page (all discussions), if a discussion has multiple tags with their own custom image set, the displayed image will be chosen according to these priority rules:

For full list of changes & new features, please refer to the CHANGELOG.md file.

đŸ“ĸ IMPORTANT NOTICE

Versions 2.x and up will target Flarum V2.

Versions 1.4.x will be the final versions targeting Flarum V1. No more new features will be added, but some bug fixes & security updates will still be provided (if necessary) until full support will be dropped sometime before the end of 2026 or early 2027. All future dev efforts will be for versions 2.x and up targeting Flarum V2.

🧩 3rd party extensions support

đŸ–Ĩī¸ Console Commands (CLI)

As of version 1.4.0 new CLI commands have been added to manage card images:

đŸ–ŧī¸ Screenshots

Discussion Cards

đŸ’Ŧ Languages

The extension is natively in English đŸ‡Ŧ🇧 & French đŸ‡Ģ🇷; it's partially translated to other language by the Flarum translation community: State of translations for Flarum V2 You can help translate it to your language via Weblate: here for Flarum V2 & here for Flarum V1.

đŸ—’ī¸ Notes

đŸ“Ĩī¸ Installation

âš ī¸ IMPORTANT

if you're installing any version for the first time or are updating from a version older than 1.4.0 you will need to regenerate card images for all existing discussions after activating the extension as it no longer does it in the frontend on page loads (performance issues). You can run php flarum discussion-cards:regenerate-imagesfirst to regenerate images for the 20 latest discussion (default) or use the button in the admin settings page (click on tools > regenerate images then on the Regenerate 20 latest card images button. Don't forget to add a general and/or tag default images first and if all is OK, you can regenerate card images for ALL discussions using the proper options with the command (see full documentation here)

Install with composer:

Then to generate card images for your discussion cards, activate the extension and run this command:

(see full documentation here for more options on the command)

â„šī¸ Note that, as of versions 2.0.1 (V2) & 1.4.4 (V1), right after the installation, an automatic command will run to generate card images for the 20 latest, top & newest discussions

â†•ī¸ Updating

â„šī¸ If you're updating from version 1.3.0 or earlier TO version 1.4.0 or later not that the discussion-cards:migrate-images command will be automatically run to move and convert old images used for cards to new file structure and format (See changelog of version 1.4.0 for more details). You will also need to need to regenerate card images if you updating from those older versions (see post installation instruction above)

🆕 🔧 Troubleshooting & Support

As of version 2.0.1 (V2) & 1.4.4 (V1) a Debugging Information tools was added to the Tools menu in the Admin Settings Page. You can use it to check how & why a discussion has a specific card image (see what the resolver sees and checks).

Before you post an issue, copy & paste the debugging information from this tools along with your output and any relevant screen capture.

🔗 Links


All versions of flarum-discussion-cards with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^2.0.0-beta
flarum/tags Version ^2.0.0-beta
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 walsgit/flarum-discussion-cards contains the following files

Loading the files please wait ...