Download the PHP package envytek/sitemap-generator without Composer
On this page you can find all versions of the php package envytek/sitemap-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download envytek/sitemap-generator
More information about envytek/sitemap-generator
Files in envytek/sitemap-generator
Download envytek/sitemap-generator
More information about envytek/sitemap-generator
Files in envytek/sitemap-generator
Vendor envytek
Package sitemap-generator
Short Description Sitemap and sitemap index builder
License BSD-3-Clause
Homepage https://github.com/envytek/sitemap
Package sitemap-generator
Short Description Sitemap and sitemap index builder
License BSD-3-Clause
Homepage https://github.com/envytek/sitemap
Keywords Sitemap
Please rate this library. Is it a good library?
Informations about the package sitemap-generator
Sitemap
Multilingual sitemap builder.
Features
- Create sitemap files: either regular or gzipped.
- Sitemap extensions support. Included extensions are multi-language sitemaps, video/image siteamaps.
- Create sitemap index files.
- Automatically creates new file if either URL limit or file size limit is reached.
- Fast and memory efficient.
Installation
Installation via Composer is very simple:
After that, make sure your application autoloads Composer classes by including
vendor/autoload.php
.
How to use it
Multi-language sitemap
Options
There are methods to configure Sitemap
instance:
setMaxUrls($number)
. Sets maximum number of URLs to write in a single file. Default is 50000 which is the limit according to specification and most of existing implementations.setMaxBytes($number)
. Sets maximum size of a single site map file. Default is 10MiB which should be compatible with most current search engines.setBufferSize($number)
. Sets number of URLs to be kept in memory before writing it to file. Default is 10. Bigger values give marginal benefits. On the other hand when the file size limit is hit, the complete buffer must be written to the next file.setUseIndent($bool)
. Sets if XML should be indented. Default is true.setUseGzip($bool)
. Sets whether the resulting sitemap files will be gzipped or not. Default isfalse
.zlib
extension must be enabled to use this feature.
There is a method to configure Index
instance:
setUseGzip($bool)
. Sets whether the resulting index file will be gzipped or not. Default isfalse
.zlib
extension must be enabled to use this feature.
Running tests
In order to run tests perform the following commands:
All versions of sitemap-generator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
ext-xmlwriter Version *
ext-xmlwriter Version *
The package envytek/sitemap-generator contains the following files
Loading the files please wait ....