An open API service indexing awesome lists of open source software.

https://github.com/arkdevuk/sitemap-builder

a simple php tool to create sitemap for google bots
https://github.com/arkdevuk/sitemap-builder

Last synced: 12 months ago
JSON representation

a simple php tool to create sitemap for google bots

Awesome Lists containing this project

README

          

[![Latest Stable Version](http://poser.pugx.org/arkdevuk/sitemap-builder/v)](https://packagist.org/packages/arkdevuk/sitemap-builder) [![Total Downloads](http://poser.pugx.org/arkdevuk/sitemap-builder/downloads)](https://packagist.org/packages/arkdevuk/sitemap-builder) [![Latest Unstable Version](http://poser.pugx.org/arkdevuk/sitemap-builder/v/unstable)](https://packagist.org/packages/arkdevuk/sitemap-builder) [![License](http://poser.pugx.org/arkdevuk/sitemap-builder/license)](https://packagist.org/packages/arkdevuk/sitemap-builder) [![Made With](https://img.shields.io/badge/made_with-php-blue)](/docs/requirements/)
# Sitemap-build
a simple tool to generate sitemaps for google's bots

## USAGE

as simple as this :
```php
setLocation('/test')
->setChangeFrequency(SitemapEntry::CHANGE_WEEKLY)
->setPriority(1)
->setLastModDateTime(new \DateTime('2020-12-10'));

$media = new SitemapEntryImage($baseUrl.'/assets/images/image.jpeg');
$media
->setCaption('A test image for the purpose of the example')
->setGeoLocation('Aurillac, Cantal, France')
->setTitle('Image Title')//->setLicence('https://creativecommons.org/licenses/by-nc-nd/4.0/')
;

$entry->setMedia($media);

$sitemap->addEntry($entry);

$container->addSitemap($sitemap);

$container->compile();

```