monsieurbiz / sylius-robots-txt-plugin
Manage your robot.txt from your Sylius admin pannel
Installs: 1 666
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.0
- monsieurbiz/sylius-settings-plugin: ^1.2.0
- sylius/sylius: >=1.12 <1.14
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- phpmd/phpmd: ^2.15
- phpspec/phpspec: ^7.0
- phpstan/phpstan: ^1.8.4
- phpstan/phpstan-doctrine: ^1.3.2
- phpstan/phpstan-webmozart-assert: ^1.1
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-12-29 12:32:53 UTC
README
Manage your robots.txt from your Sylius admin pannel
Compatibility
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
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/Resources/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
Contributing
You can open an issue or a Pull Request if you want! 😘
Thank you!