承接 nidextc/sitemap-generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nidextc/sitemap-generator

Composer 安装命令:

composer require nidextc/sitemap-generator

包简介

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

README 文档

README

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 !

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-01