Download the PHP package werkspot/sitemap-bundle without Composer

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

Werkspot sitemap bundle

Bundle for generating dynamic sitemap.xml content with support for multiple sections and pages per section.

Travis build status Scrutinizer Code Quality

Install

# composer require werkspot/sitemap-bundle

Update your routing

That will make the bundle listen to /sitemap.xml, /sitemap.{section}.xml and /sitemap.{section}.{page}.xml

Usage

The bundle generates a sitemap by looking for data providers.

A provider is a class that implements ProviderInterface and is tagged as werkspot.sitemap_provider in the service container.

The bundle's service will gather data from all providers and create a sitemap section for everyone of them.

Each section can generate one or more pages.

Single page provider

To facilitate sitemap creation for static lists things or pages that do not need to be created dynamically AbstractSinglePageSitemapProvider can be extended. That will only require providing a section name and a SitemapSectionPage with Url objects.

Example

This will generate /sitemap.default.xml with 3 pages and put a link to it in /sitemap.xml

Multiple page provider

A more complex provider can extend AbstractSitemapProvider. In that case the provider can select how many pages it wants to generate and what results to return in every page.

Example

The following will generate /sitemap.products.xml and if the count is too high it will split in multiple pages: /sitemap.products.1.xml, /sitemap.products.2.xml etc and put all the right links to these in /sitemap.xml for indexing to happen.

Adding alternate language pages

To add links to translations for pages to the sitemap, you can use AlternateLink and add these to a Url.

Google Guidelines: https://support.google.com/webmasters/answer/2620865?hl=en

Note: The alternate links should include the Url itself, see the second note in the link above

Example


All versions of sitemap-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
symfony/framework-bundle Version ^4.4 || ^5.2 || ^6.3
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 werkspot/sitemap-bundle contains the following files

Loading the files please wait ....