Download the PHP package groe/craft-sitemap without Composer

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

NOTE: This is a fork of the currently unmaintained craft-sitemap plugin by @joshuabaker. The original author has not responded to questions regarding his plans for the future of the project. So feel free to use the fork while we (hopefully) merge it back some day.

Craft Sitemap

A simple plugin for Craft that generates a sitemap.xml based on enabled sections.

Settings

Installation

  1. Copy the sitemap/ folder into craft/plugins/
  2. Go to Settings → Plugins and click the “Install” button next to “Sitemap”

Usage

Within the plugin settings, check the boxes in the “Enabled” column to include them in the sitemap.

To view the output visit /sitemap.xml.

Advanced

This plugin exposes various ‘Hooks and Events’ documentation, if you’re not sure how this works.

Hooks

renderSitemap

Add a renderSitemap method to your plugin to add items via the various service methods listed below.

Here’s an example plugin hook method with comments:

And here’s an example of the resulting element in the sitemap XML:

Service Methods

There’s several service methods made available to add items to the sitemap.

addUrl($loc, $lastmod, [$changefreq, [$priority]])

Adds a URL to the sitemap.

addElement(BaseElementModel $element, [$changefreq, [$priority, [$currentLocaleOnly, [$alternateUrls]]]])

Adds an element to the sitemap.

addSection(SectionModel $section, [$changefreq, [$priority, [$currentLocaleOnly, [$alternateUrls]]]])

Adds all entries in the section to the sitemap.

addCategoryGroup(CategoryGroupModel $categoryGroup, [$changefreq, [$priority, [$currentLocaleOnly, [$alternateUrls]]]])

Adds all categories in the group to the sitemap.

getElementUrlForLocale(BaseElementModel $element, $locale)

Gets a element URL for the specified locale. The locale must be enabled.

getUrlForLocale($path, $locale)

Gets a URL for the specified locale. The locale must be enabled.

Helper Classes

Sitemap_ChangeFrequency

Enumeration of valid changefreq values.


All versions of craft-sitemap with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.2
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 groe/craft-sitemap contains the following files

Loading the files please wait ....