Download the PHP package fof/sitemap without Composer

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

SEO & Sitemap by FriendsOfFlarum

MIT license Latest Stable Version Total Downloads OpenCollective

A comprehensive SEO solution for Flarum that provides both XML sitemaps and robots.txt generation to help search engines discover and index your forum content effectively.

Features

The extension intelligently includes content like Discussions, Users, Tags (flarum/tags), and Pages (fof/pages) while providing extensive customization options for developers.

Installation

This extension requires PHP 8.0 or greater.

Install manually with composer:

Updating

XML Sitemap Generation

The extension automatically generates XML sitemaps at /sitemap.xml that help search engines discover and index your forum content.

Generation Modes

There are two modes available, both serving content from your main domain for search engine compliance.

Runtime Mode

The sitemap is generated on-the-fly when requested. Individual sitemap files are served at /sitemap-1.xml, /sitemap-2.xml, etc.

Best for: Small to medium forums with less than 10,000 total items (discussions, users, tags, pages combined). Most shared hosting environments.

Cached Multi-File Mode

Sitemaps are pre-generated and updated via the Flarum scheduler. Content is stored on your configured storage (local disk, S3, CDN) but always served from your main domain.

Best for: Larger forums starting at 10,000+ items.

Manual rebuild:

Performance Optimizations

For enterprise customers with millions of items, the "Enable risky performance improvements" option reduces database response size by limiting returned columns. Only enable if generation takes over an hour or saturates your database connection.

Search Engine Compliance

The extension ensures full search engine compliance:

Scheduling

Cached sitemaps automatically update via the Flarum scheduler. Configure the frequency in extension settings.

Learn more about Flarum scheduler setup.

Robots.txt Generation

The extension automatically generates a standards-compliant robots.txt file at /robots.txt that works seamlessly with your sitemap configuration. It replaces any existing robots.txt functionality from other extensions like v17development/flarum-seo.

Features

Default Behavior

The generated robots.txt includes:

Conditional entries (only included when relevant):

Integration with Sitemap Settings

The robots.txt generation automatically respects your sitemap configuration:

This ensures consistency between what's in your sitemap and what's allowed in robots.txt.

Extending the Extension

This extension provides comprehensive APIs for customizing both XML sitemaps and robots.txt generation.

Extending XML Sitemaps

Using the Unified Sitemap Extender (Recommended)

The recommended way to extend sitemaps uses the unified Sitemap extender with method chaining:

Available Methods:

Creating Custom Resources

Create a class that extends FoF\Sitemap\Resources\Resource:

Extending Robots.txt

Using the Robots Extender

Extensions can customize robots.txt using the Robots extender:

Available Methods:

Creating Custom Robots Entries

Create a class that extends FoF\Sitemap\Robots\RobotsEntry:

Helper Methods Available:

Extending Default Entries

All default entries can be extended to modify their behavior:

Legacy Extenders (Deprecated)

The following extenders are deprecated and will be removed in Flarum 2.0:

Configuration Options

Sitemap Elements

Control which elements are included in your XML sitemaps:

Both are enabled by default. When enabled, the extension uses intelligent frequency calculation based on actual content activity.

Performance Settings

Server Configuration

Nginx Configuration

If accessing /sitemap.xml or /robots.txt results in nginx 404 errors, add these rules:

Troubleshooting

Regenerating Sitemaps

If you've updated the extension or changed storage settings:

Debug Logging

When Flarum is in debug mode, the extension provides detailed logging for:

Check your Flarum logs (storage/logs/) for detailed information.

Acknowledgments

The initial version of this extension was sponsored by profesionalreview.com.

Links


All versions of sitemap with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^2.0.0
guzzlehttp/guzzle Version *
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 fof/sitemap contains the following files

Loading the files please wait ...