Download the PHP package shebaoting/flarum-repost without Composer

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

Repost

License Latest Stable Version Total Downloads

Repost is a Flarum 2.x extension for publishing link-based discussions. If a new discussion starts with an HTTP or HTTPS URL, the extension stores that URL as the discussion's original source and turns the discussion list title into an external link. The local discussion page remains available, so community members can still reply, moderate, and discuss the linked content inside Flarum.

中文介绍

Features

Requirements

This extension is intended for Flarum 2.x. Use the v0.x series for old Flarum 1.x installations.

Installation

Install the extension with Composer:

If you are using a local path repository during development, require the same 2.x constraint from your Flarum app:

Updating

If your forum still requires the old package name, switch the Composer requirement first:

After clearing the cache, refresh the forum page in the browser so Flarum regenerates the combined frontend assets.

Configuration

Go to Admin > Permissions and configure the Repost permission:

Users without this permission can still create normal discussions, but the extension will not save an originalUrl value for them.

Usage

Create a discussion whose content starts with a full URL:

When the discussion is published:

  1. The URL is stored as the discussion's original source.
  2. The discussion list shows the source domain, for example example.com.
  3. Clicking the discussion title opens the original source in a new tab.
  4. Clicking the reply/comment icon or number opens the local Flarum discussion page.
  5. Replies, moderation actions, tags, subscriptions, and other Flarum discussion features continue to work on the local page.

Behavior Details

Only URLs that appear at the very beginning of the discussion content are extracted. The URL must start with http:// or https://.

The extension does not fetch, scrape, or copy the remote page. It only stores the source URL and adjusts the discussion list link behavior.

The local discussion URL remains the canonical place for comments. This is useful for RSS imports, news sharing, bookmarks, link roundups, and communities where users want to discuss external content without duplicating the full article.

Data And Migration Notes

Repost stores the original source URL in the discussions.original_url column.

For Flarum 1.x upgrades, existing values in this column are preserved. The migration is idempotent and will not recreate the column if it already exists.

Development

Install JavaScript dependencies and build the frontend assets:

Useful checks:

Troubleshooting

If the discussion list still links every part of a reposted discussion to the external source, clear Flarum's cache and refresh the forum:

If the original URL is not saved, check that the actor has the Extract original URL permission and that the discussion content begins directly with an http:// or https:// URL.

Links

License

This extension is open-sourced software licensed under the MIT license.


All versions of flarum-repost with dependencies

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

Loading the files please wait ...