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

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

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

monsieurbiz/sylius-blog-plugin

最新稳定版本:v2.1.0

Composer 安装命令:

composer require monsieurbiz/sylius-blog-plugin

包简介

Add blog features on Sylius application.

README 文档

README

Blog Plugin license Tests Status Recipe Status Security Status

This plugin adds a blog to your Sylius project. It allows you to create blog articles, tags and authors.

List of article in a Sylius blog

Compatibility

Sylius Version PHP Version
2.0, 2.1 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 add recipes endpoints to your composer.json by running this command:

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

Install the plugin via composer:

composer require monsieurbiz/sylius-blog-plugin

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

<?php

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

Add the plugin's routing by creating a new file in config/packages/monsieurbiz_sylius_blog_plugin.yaml with the following content:

imports:
    resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/config.yaml'

Add the plugin's routing by creating a new file in config/routes/monsieurbiz_sylius_blog_plugin.yaml with the following content:

monsieurbiz_blog_plugin:
   resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/routes.yaml'

And finally, update your database:

bin/console doctrine:migrations:migrate

Type of posts

List of article in a Sylius admin

This plugin allows you to create 2 types of posts:

  • Blog articles: These are the main content of your blog, where you can write detailed posts.
  • Case studies: These are more focused posts that showcase specific projects or achievements.

Case studies are disabled by default. You can enable them by setting the env var MONSIEURBIZ_SYLIUS_BLOG_ENABLE_CASE_STUDIES to true in your .env file:

MONSIEURBIZ_SYLIUS_BLOG_ENABLE_CASE_STUDIES=true

The structure of the code allows you to easily add new types of posts in the future if needed.

License

This plugin is under the MIT license. Please see the LICENSE file for more information._

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 7
  • 开发语言: Twig

其他信息

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