PHP code example of 19js / sitemap
1. Go to this page and download the library: Download 19js/sitemap library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
19js / sitemap example snippets
namespace Tom\Sitemap;
l 网站首页地址
* @param $dir sitemap.xml存储文件夹
* @param int $type 0:响应式 1:wap 2: 自适应 3:pc
*/
Sitemap::handle('https://www.19js.club','./');
bash
php index.php