Download the PHP package muhammetsafak/sitemap-generator without Composer
On this page you can find all versions of the php package muhammetsafak/sitemap-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download muhammetsafak/sitemap-generator
More information about muhammetsafak/sitemap-generator
Files in muhammetsafak/sitemap-generator
Package sitemap-generator
Short Description Basic XML Sitemap (Standard, Video, Image, News) Generator
License MIT
Informations about the package sitemap-generator
Sitemap Generator
This class uses simple XML syntax. It is prepared simply to create a sitemap. Supports creating sitemaps for Images, Videos and News...
It has been prepared using the document provided by Google to implement current standards (https://developers.google.com/search/docs/advanced/sitemaps/overview).
Requirements
- PHP 7.2 or higher
- PHP SimpleXML Extension
- PHP DOM Extension
Installation
Usage
Note : If you want to get the XML output as a string instead of writing it directly to a file; You can use the getContent()
method.
Note : If you want the generated XML output to be formatted, you can use the setFormatOutput()
method.
Standard Sitemap Generator
The example above produces the following output;
Review the following example on identifying alternatives.
The example above produces the following output;
Video Sitemap Generator
The example above produces the following output;
Image Sitemap Generator
The example above produces the following output;
News Sitemap Generator
The example above produces the following output;
Credits
License
Copyright © 2022 MIT License
All versions of sitemap-generator with dependencies
ext-simplexml Version *
ext-dom Version *