wish-cloud/laravel-sitemap 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wish-cloud/laravel-sitemap

最新稳定版本:v3.0.0

Composer 安装命令:

composer require wish-cloud/laravel-sitemap

包简介

sitemap generator package for Laravel.

README 文档

README

forked from Laravelium/laravel-sitemap

Installation

You can install the package via composer:

composer require wish-cloud/laravel-sitemap

Then, publish needed assets (styles, views, config files):

php artisan vendor:publish --provider="WishCloud\LaravelSitemap\SitemapServiceProvider"

Note: Composer won't update them after composer update, you'll need to do it manually!

Usage

Creating a new sitemap response is easy:

$sitemap = App::make('sitemap');
$sitemap->add('https://example.com/link1', Carbon::now(), '1.0', 'daily');
$sitemap->add('https://example.com/link2', '2022-02-17 13:26:37', '0.8', 'weekly');
return $sitemap->render('xml');

Create index files for large sitemaps:

$sitemap = App::make('sitemap');
$sitemap->addSitemap('https://example.com/sitemap-category.xml');
$sitemap->addSitemap('https://example.com/sitemap-product.xml');
$sitemap->addSitemap('https://example.com/sitemap-article.xml');
return $sitemap->render('sitemapindex');

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固