Download the PHP package andrexdd/tombstone without Composer

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

Tombstone

A Flarum extension. When a discussion is permanently deleted, its URL stops being a dead end.

Latest Stable Version

The problem

Flarum has no memory of a discussion once it's permanently deleted. Every link to it — indexed by Google, shared on social media, bookmarked by a user, posted on another forum — turns into a bare, unexplained 404. Search engines keep crawling it, lose confidence in the domain, and eventually drop it from the index. Visitors who followed a real link just see a wall.

This has been asked for on the official Flarum forum for years. FriendsOfFlarum/merge-discussions solved it for merged discussions. Nothing solved it for deleted ones — until now.

What it does

Installation

Usage

Nothing to configure. Delete a discussion the way you always have; it's tombstoned automatically.

To point an old discussion at a new destination:

To see everything currently tracked:

To stop tracking a discussion and go back to a plain 404 for it:

If a discussion was deleted before you installed this extension and you want to redirect its old link anyway, add --force:

How it works

Flarum's own Discussion model dispatches a Flarum\Discussion\Event\Deleted event the instant a discussion row is actually deleted (as opposed to merely hidden). This extension listens for that event and writes a tiny, indexed record — nothing more than the ID, title, timestamp, and whoever did the deleting.

A single PSR-15 middleware is added to both the forum and api pipelines. It lets every request pass through completely untouched, and only inspects the outgoing response if Flarum itself decided to answer with a 404. At that point, and only at that point, it checks the discussion ID in the URL against the tombstone table. If there's a match, it swaps in either a 301 to the redirect you configured, or a properly-worded 410 Gone. Everything else — every page that isn't a 404 for a deleted discussion — is unaffected and pays no performance cost whatsoever.

Because IDs are never reused by the database once a discussion is deleted, there is no ambiguity and no risk of a tombstone ever shadowing a real, later discussion.

Compatibility

Requires flarum/core: ^2.0.0 and PHP ^8.2. No other extension is required.

License

MIT. See LICENSE.


Developed by andre.


All versions of tombstone with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
flarum/core Version ^2.0.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 andrexdd/tombstone contains the following files

Loading the files please wait ...