monsieurbiz/sylius-robots-txt-plugin 问题修复 & 功能扩展

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

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

monsieurbiz/sylius-robots-txt-plugin

最新稳定版本:v2.0.0

Composer 安装命令:

composer require monsieurbiz/sylius-robots-txt-plugin

包简介

Manage your robot.txt from your Sylius admin pannel

README 文档

README

Robots TXT Plugin license Tests Status Recipe Status Security Status

Manage your robots.txt and llms.txt from your Sylius admin pannel

Demo of the settings form to manage robots.txt content

Compatibility

Sylius Version PHP Version
2.0.0 8.2 - 8.3
2.1.0 8.2 - 8.3

ℹ️ For Sylius 1.x, see our 1.x branch and all 1.x releases.

Installation

If you want to use our recipes, you can configure your composer.json by running:

composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
composer require monsieurbiz/sylius-robots-txt-plugin

Then remove your robots.txt file from your public directory.

rm public/robots.txt
For the installation without flex, follow these additional steps

Setup Settings Installation

Change your config/bundles.php file to add this line for the plugin declaration:

<?php

return [
    //..
    MonsieurBiz\SyliusRobotsTxtPlugin\MonsieurBizSyliusRobotsTxtPlugin::class => ['all' => true],
];  

Then create the config file in config/packages/monsieurbiz_sylius_robots_txt_plugin.yaml :

imports:
    resource: '@MonsieurBizSyliusRobotsTxtPlugin/config/config.yaml'

Finally import the routes in config/routes/monsieurbiz_sylius_robots_txt_plugin.yaml :

monsieurbiz_robots_txt_render:
    path: /robots.txt
    methods: [ GET ]
    defaults:
        _controller: MonsieurBiz\SyliusRobotsTxtPlugin\Controller\RenderController
        settingName: 'robots_txt_content'
monsieurbiz_llms_txt_render:
    path: /llms.txt
    methods: [ GET ]
    defaults:
        _controller: MonsieurBiz\SyliusRobotsTxtPlugin\Controller\RenderController
        settingName: 'llms_txt_content'

Contributing

You can open an issue or a Pull Request if you want! 😘
Thank you!

统计信息

  • 总下载量: 8.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-29