Download the PHP package charcoal/contrib-sitemap without Composer

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

Charcoal Sitemap

Build Status Latest Release

A Charcoal package for generating a sitemap.

Installation

Setup

For Charcoal projects, the package can be registered in two ways.

Charcoal Module

The Sitemap's module will register the service provider (see below) and the route (/sitemap.xml).

The module can be registered from your configuration file:

Charcoal Service Provider

The Sitemap's service provider will register the necessary services (see below) for building a sitemap.

The service provider can be registered from your configuration file:

To register a route from your configuration file:

By default, the action controller will look for a sitemap hierarchy named xml which can be changed via the sitemap_ident controller setting.

Overview

Routes

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 converter if you need another format.

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.

XML Formatter

The XML formatter generates a valid XML sitemap from the array returned by the builder.

Development

To install the development environment:

To run the scripts (PHP lint, PHPCS, PHPStan, and PHPUnit):

License

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


All versions of contrib-sitemap with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
charcoal/app Version ^4.0
charcoal/core Version ^4.0
charcoal/factory Version ^4.0
charcoal/object Version ^4.0
charcoal/translator Version ^4.0
charcoal/view Version ^4.0
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 charcoal/contrib-sitemap contains the following files

Loading the files please wait ....