Download the PHP package silverstripe/googlesitemaps without Composer

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

Google Sitemaps Module

CI Version

Maintainer Contact

Installation

composer require "wilr/silverstripe-googlesitemaps"

If you're using Silverstripe 5 then version 3 or dev-main will work.

For Silverstripe 4 use the 2.x branch line.

Documentation

Provides support for the Sitemaps XML Protocol, enabling Google, Bing and other search engines to index the web pages on your site. This helps your SilverStripe website rank well in search engines, and to encourage the information on your site to be discovered by Google quickly.

Any new pages published or unpublished on your website automatically update the Sitemap.

The XML Sitemap can be accessed by going to http://yoursite.com/sitemap.xml

Static cache and gzipped sitemaps (sitemap.xml.gz)

Google's sitemap protocol recommends serving sitemaps as gzipped .xml.gz files. This module can render the sitemap index and all sub-sitemaps to disk on a schedule and serve those static files on subsequent requests, including a /sitemap.xml.gz endpoint.

Enable the static cache in YAML:

Generate the files manually:

Or, if you have silverstripe/queuedjobs installed, queue the bundled GenerateGoogleSitemapJob and it will re-queue itself every regenerate_time seconds (defaulting to hourly):

enable_gzip is opt-in but transparently downgrades to XML-only output if the running PHP build does not have zlib support.

See docs/en/index.md for the full configuration reference.

Multi-language sites (Fluent)

If tractorcow/silverstripe-fluent is installed the module automatically expands the sitemap index so every (class, page) entry is emitted once per configured locale, with URLs like /sitemap.xml/sitemap/<ClassName>/<Page>/<Locale> — the structure recommended by the sitemaps protocol for multi-language sites. Each sub-sitemap renders inside a FluentState::withState() block so locale filtering happens in SQL.

The integration is purely additive (Only: classexists guarded) so installs without Fluent are unaffected. See docs/en/index.md for how to opt out and the available extension hooks.

Usage Overview

See docs/en for more information about configuring the module.

Troubleshooting

Running tests

To generate code coverage (requires Xdebug or PCOV installed and enabled):

Reports are written to coverage/html/index.html (HTML), coverage/clover.xml (Clover, useful for CI), and a textual summary on stdout.


All versions of googlesitemaps with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
silverstripe/framework Version ^5
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 silverstripe/googlesitemaps contains the following files

Loading the files please wait ...