Skip to content

NideXTC/sitemapGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sitemapGenerator

A script for the sitemap generation. The script will create a sitemap with links & images and will compress it.

Installation

Run the following command :

php composer.phar require nidextc/sitemap-generator

or add the following to your composer.json file :

"nidextc/sitemap-generator": "dev-master"

SitemapGenerator requires PHP 5.3.0 or later.

Usage examples

<?php

require_once 'vendor/autoload.php';
use SeoTools\SitemapGenerator;

$sitemapGenerator = new SitemapGenerator('http://www.alexis-ducerf.fr', 50000, date('Y-m-d'), 'monthly');
$sitemapGenerator->generate();
$sitemapGenerator->compress();

Parameters Detail
http://www.alexis-ducerf.fr the absolute URL of the website
50000 The max number of pages crawled (50000 is the limit for Google)
date('Y-m-d') If the server don't send the last modification date, set it as default
monthly The pages modification frequency

Enjoy !

About

A script for the sitemap generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages