Download the PHP package dlapps/sitemap-bundle without Composer

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

Sitemap Bundle

Latest Version on Packagist Build Status Coverage Status Quality Score SensioLabsInsight Total Downloads

The Sitemap bundle enables development teams to quickly add support for generating sitemaps, for their PHP7 packages and projects built on Symfony 3.2+.

The bundle supports a number of customisation parameters, PSR-4 autoloading, is PSR-2 compliant and has been well tested through automated tests, as well as being used in various microservices within the Dreamlabs ecosystem.

Install

Via Composer

Enable the bundle in your AppKernel, present in: app/AppKernel.php.

Usage

In order to generate a sitemap, you need to generate an instance of sitemap definition DL\SitemapBundle\Definition\Sitemap. This instance can then accept the individual sitemap resources that you would like to add via the Sitemap::addResource() method.

In order to assist with the generation and validation of sitemap resources, the sitemap_resource_builder service is exposed, and can be used as in the example below:

The builder will automatically validate a new resource that is added to the Sitemap, and ensure that:

The builder also exposes a ->withRelativeLocation($location) method, which can be used alongside the location_prefix configuration parameter in order to generate absolute routes, from relative URLs. This feature is present in order to assist with possibly mismatching hostnames when proxying through an improperly configured load balancer.

Given a scenarion in which the location_prefix parameter is set to https://example.com calling ->withRelativeLocation('/article/test') will generate the absolute URL https://example.com//article/test.

The DL\SitemapBundle\Enum\ChangeFrequencyEnum class can be used in order to define a strict change frequency. Possible values are:

Configuration Reference

The following configuration parameters are also available for the bundle:

Testing

PSR-2 Compatibility

Contributing

Please see CONDUCT for details.

Security

If you discover any security related issues, please email petre [at] dreamlabs.ro instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of sitemap-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
symfony/symfony Version ^3.2
jms/serializer-bundle Version ^1.1
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 dlapps/sitemap-bundle contains the following files

Loading the files please wait ....