Download the PHP package sonrisa/sitemap-component without Composer
On this page you can find all versions of the php package sonrisa/sitemap-component. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sonrisa/sitemap-component
More information about sonrisa/sitemap-component
Files in sonrisa/sitemap-component
Package sitemap-component
Short Description Standalone sitemap builder 100% standards compliant. Build for PHP5.3 and above.
License
Homepage http://nilportugues.com
Informations about the package sitemap-component
Sitemap Component
Builds sitemaps for pages, images and media files and provides a class to submit them to search engines.
- 1.Installation
- 2. Features
- 3. Automatic sitemap submission
- 4. Usage
- 4.1. Submit to search engines
- 4.2. Build a Sitemap Index
- Creation
- Output
- 4.3. Build a simple Sitemap
- Creation
- Output
- 4.4. Build a Sitemap with Images
- Creation
- Output
- 4.5. Build a Sitemap with Videos
- Creation
- Output
- 4.6. Build a Media Sitemap (mRSS feed as a Sitemap)
- Creation
- Output
- 4.7 - Build a Sitemap for News
- Creation
- Output
- 5. Fully tested
- 6. Questions?
- 7. Author
1.Installation
The recommended way to install the Sitemap Component is through Composer. Run the following command to install it:
2. Features
This component builds sitemaps supported by the main search engines, Google and Bing, in xml and gzip formats.
The Sitemap Component is able of building the following types of sitemaps:
Sitemap Index
A sitemap that serves as a index containing references to other sitemap.xml files. More documentation can be found here.
Basic Sitemap
Text content sitemaps, the most common type of sitemap found around the Internet. More documentation can be found here.
Image Sitemap
Sitemap for for images. More documentation can be found here.
Video Sitemap
Sitemap for for videos. More documentation can be found here.
Media Sitemap
Alternative for video sitemaps. More documentation can be found here.
News Sitemap
Sitemap for news articles. More documentation can be found here.
Standard compilant
The sitemap component follow 100% the standards, meaning that it follows strictly the contrains:
- A sitemap file cannot contain 50000 items per file.
- A sitemap file cannot be larger than 50 MBytes, uncompressed.
- An Image Sitemap file cannot contain more than 1000 images per
<url>
element.
3. Automatic sitemap submission
This component also provides a method to submit the generated sitemaps to the following search engines:
- Bing
4. Usage
4.1 - Submit to search engines
4.2 - Build a Sitemap Index
In order to use a Sitemap Index, you need to build sitemap files first. Check out 4.3, 4.4 and 4.5.
Creation
Output
4.3 - Build a simple Sitemap
Creation
Output
4.4 - Build a Sitemap with Images
Creation
Output
4.5 - Build a Sitemap with videos
Creation
Output
4.6 - Build a Media Sitemap (mRSS feed as a Sitemap)
Creation
Output
4.7 - Build a Sitemap for News
Creation
Output
5. Fully tested.
Testing has been done using PHPUnit and Travis-CI. All code has been tested to be compatible from PHP 5.4 up to PHP 5.6 and Facebook's HHVM.
6. Questions?
Drop me an e-mail or get in touch with me using
--
7. Author
Nil Portugués Calderó