Download the PHP package locomotivemtl/charcoal-contrib-sitemap without Composer

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

Charcoal Sitemap

License Latest Stable Version Code Quality Coverage Status Build Status

A Charcoal service for generating a sitemap.

Table of Contents

Installation

The preferred (and only supported) method is with Composer:

Dependencies

Required

Service Provider

Services

Configuration

The Sitemap can be configured from the application configset under the sitemap key. You can setup which objects to be included and available translations (l10n).

Most options are renderable by objects using your application's chosen template syntax (Mustache used in examples below).

Default Options

json

Each model can override the following options of their group: l10n, locale, check_active_routes, relative_urls.

Example

The example below, identified as footer_sitemap, is marked as multilingual using the l10n option which will include all translations.

Usage

Using the builder

The builder returns only an array. You need to make your own conversation if you need another format.

The Sitemap module will include all necessary service providers and set the route (sitemap.xml) directly. Include the module:

Given the settings above:

You can also use the SitemapBuilderAwareTrait, which includes the setter and getter for the sitemap builder, in order to use it with minimal code in every necessary class.

Sitemap.xml

This contrib provides a route for sitemap.xml that dynamically loads the xml config and outputs it as an XML for crawlers to read.

Development

To install the development environment:

To run the scripts (phplint, phpcs, and phpunit):

API Documentation

Development Dependencies

Coding Style

The charcoal-contrib-sitemap module follows the Charcoal coding-style:

Coding style validation / enforcement can be performed with composer phpcs. An auto-fixer is also available with composer phpcbf.

Credits

License

Charcoal is licensed under the MIT license. See LICENSE for details.


All versions of charcoal-contrib-sitemap with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0 || >=7.0
locomotivemtl/charcoal-app Version ~0.8
locomotivemtl/charcoal-core Version ~0.3
locomotivemtl/charcoal-factory Version ~0.4
locomotivemtl/charcoal-object Version ~0.4
locomotivemtl/charcoal-translator Version ~0.3
locomotivemtl/charcoal-view Version ~0.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 locomotivemtl/charcoal-contrib-sitemap contains the following files

Loading the files please wait ....