Download the PHP package tapao/custom-landing-page without Composer

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

tapao/custom-landing-page

A Flarum extension that serves a fully custom HTML page at the root path / with zero Flarum chrome — no header, footer, or SPA shell.

Unlike datlechin/flarum-landing-page which injects content inside Flarum's layout, this extension intercepts the request at the PHP middleware layer and returns raw HTML before the Flarum SPA ever loads.

Features

Installation

For Flarum 2.x (Recommended)

For Flarum 1.x

Then enable the extension in your Flarum admin panel.

Configuration

Go to Admin → Extensions → Custom Landing Page and configure:

Setting Description
Enable Master on/off toggle
Show to guests only When on, logged-in users see the normal forum instead
Landing Page HTML Paste your full HTML document here

Template Variables

These placeholders are replaced server-side before the page is sent:

Variable Resolves to
{{ forum_title }} Your forum's title
{{ forum_url }} Forum base URL
{{ login_url }} /login (with fof/direct-links) or /?modal=login
{{ register_url }} /register (with fof/direct-links) or /?modal=register
{{ year }} Current year (e.g. 2026)

Example HTML

Login / Register Links

With fof/direct-links (recommended)

Install fof/direct-links for clean /login and /register routes. This extension auto-detects it and resolves {{ login_url }} to /login and {{ register_url }} to /register.

Without fof/direct-links

The {{ login_url }} and {{ register_url }} variables fall back to /?modal=login and /?modal=register. Flarum's frontend listens for these query params on boot and auto-opens the login/register modal.

The middleware is configured to bypass the landing page when modal query parameter is present (e.g. /?modal=login), allowing the normal Flarum SPA to load and open the corresponding modal.

Bypassing the Landing Page / Accessing the Forum

Guests can access the main forum page using the /forum path (or /?forum=1).

Use the {{ forum_url }}/forum path in your custom HTML CTA buttons so guests can easily enter the forum.

How It Works

A PSR-15 middleware is registered in Flarum's web middleware stack. On every request it checks:

  1. Is the extension enabled?
  2. Is this a GET / request?
  3. Is the visitor a guest? (when guest-only mode is on)

If all conditions pass, it returns an HtmlResponse with your stored HTML — the rest of Flarum's request pipeline never runs.

Building JS (for developers)

The admin settings panel requires the compiled JS asset:

For development with watch mode:

Compatibility

Flarum PHP Status
1.8.x 8.1+ Supported (use ^1.0 tag)
2.x 8.2+ Supported (use ^2.0 tag)

License

MIT


All versions of custom-landing-page with dependencies

PHP Build Version
Package Version
Requires flarum/core 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 tapao/custom-landing-page contains the following files

Loading the files please wait ...