2017 © Pedro Peláez
 

library sitemap

image

duvarov/sitemap

  • Thursday, August 31, 2017
  • by d_uvarov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Sitemap

Simple sitemap generator for php, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

composer require d-uvarov/sitemap

or add to the require section of your composer.json file., (*3)

"d-uvarov/sitemap": "0.*"

Quick start

$sitemap = new Sitemap('http://example.com', __DIR__, 'sitemap.xml');

$sitemap->addUrl('/link1');
$sitemap->addUrl('/link2', time());
$sitemap->addUrl('/link3', time(), Sitemap::CHANGEFREQ_HOURLY);
$sitemap->addUrl('/link4', time(), Sitemap::CHANGEFREQ_DAILY, 0.3);
$sitemap->addUrl('/link5', time(), Sitemap::CHANGEFREQ_DAILY, 0.3);

$sitemap->write();

The Versions

31/08 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Dmitry Uvarov

31/08 2017

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Dmitry Uvarov