承接 flyingmana/largexmlsitemap 相关项目开发

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

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

flyingmana/largexmlsitemap

Composer 安装命令:

composer require flyingmana/largexmlsitemap

包简介

PHP classes for generation of huge XML sitemaps

README 文档

README

LargeXMLSitemap PHP classes for generation of huge XML sitemaps

About

LargeXMLSitemap allows PHP developers to generate search engine XML sitemaps with millions of URLs, and automatically handles correct sizing, splitting and compression of the generated XML file structure. Unlike other tools, LargeXMLSitemap does not crawl your site to generate a XML structure of your browseable URLs - it's a collection of PHP classes which can be used from within your sites code to generate these structures. If, for example, you have an online shopping site, it's very easy to create correctly structured, sized and compressed XML sitemaps with the URLs to all your product pages. Customized versions of these classes are in production use on the MyHammer platform and are reliably generating sitemaps with millions of URLs each day.

Aim of this project

We are releasing those classes as Open Source Software because we believe they might be useful for other sites which need to generate huge XML sitemap structures, and because there is still room for a lot of optimizations and more features. There is a Google Group for all discussions related to our Open Source projects - we would love to hear your opinion, ideas and questions: http://groups.google.com/group/myhammer-opensource

Usage

Please see the examples.

General

cXmlSitemapConfig is optional and not used inside the other classes. Provide filename without ending. .xml or xml.gz are appended depending on compress flag. The sitemap filenames get a counter starting with 0.

Create new Sitemap files

Create a new Generator Object $oSitemapCreator = new cXmlSitemapGeneratorWrite(FILENAME, SAVE COMPRESSED, PATH);

Delete the current files $oSitemapCreator->deleteCurrent();

Open the first file $oSitemapCreator->open();

Add some URLs to the Sitemap $oSitemapCreator->addUrl(URL, Last modification time, change frequency, priority) $oSitemapCreator->addUrl(URL, Last modification time, change frequency, priority) $oSitemapCreator->addUrl(URL, Last modification time, change frequency, priority)

Close the generator and save the last sitemap file $oSitemapCreator->save();

Update the sitemap index $oSitemapCreator->updateSitemapIndex(Path to Sitemap Indexfile);

Authors

Jan Christiansen

Contact

Send suggestions, Feedback, problems or whatever to opensource@myhammer.de

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GNU
  • 更新时间: 2020-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固