discutea/forum-bundle
Composer 安装命令:
composer require discutea/forum-bundle
包简介
Simple forum bundle.
关键字:
README 文档
README
BUNDLE INFORMATION:
This bundle has been conceived with and for Symfony 3 (PHP >= 5.x | 7.x)
Annonce: If my work seems good to you, be aware that I am currently looking for a job.
Available on:
FEATURES:
This bundle includes the following features:
- Category: Create / Edit / Delete / Move forums / User rights management.
- Forum: Create / Edit / Delete / Move topics
- Topics: Create / Edit / Delete / Move
- Posts: Create / Edit / Delete
- Labels: Resolved / Pinned / Closed
- Others, coming soon...
SETUP:
Before setting up everything, this bundle requires that you install KnpPaginatorBundle.
1: Add the dependancy to your composer
composer require discutea/forum-bundle
2: Register DForumBundle in the Symfony kernel
<?php // app/AppKernel.php // ... public function registerBundles() { $bundles = [ // ... // IF NOT EXIST new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), // END OF DEPENDANCY new Discutea\DForumBundle\DForumBundle(), // ...
4: Add routes routes
# app/Config/routing.yml
discutea_forum:
resource: "@DForumBundle/Resources/config/routing.yml"
prefix: /
5: Bundle configuration:
User entity
doctrine:
orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
resolve_target_entities:
Symfony\Component\Security\Core\User\UserInterface: Namespace\YourUserBundle\Entity\User
# Stof Doctrine Extensions
stof_doctrine_extensions:
orm:
default:
sluggable: true
# Configuration for knp paginator: don't forget to customize page_name
knp_paginator:
page_range: 3
default_options:
page_name: p
sort_field_name: sort
sort_direction_name: direction
distinct: true
template:
pagination: KnpPaginatorBundle:Pagination:twitter_bootstrap_v3_pagination.html.twig
sortable: KnpPaginatorBundle:Pagination:sortable_link.html.twig
# Configuration for discutea forum
discutea_forum:
preview:
enabled: true
knp_paginator:
page_name: p #see knp_paginator.default_option.page_name
topics:
enabled: true
per_page: 10
posts:
enabled: true
per_page: 10
6: Add a ROLE_MODERATOR in app/config/security.yml
7: Update the database
php bin/console doctrine:schema:update --force
8: Install the styles
php bin/console asset:install
All set, browse /forum and start by creating your first category and forum
8: Avoid to 404 http://symfony.com/doc/current/cookbook/routing/redirect_trailing_slash.html
MORE INFO
To get help regarding this bundle or to request features (English and French)
- server: irc.ircz.fr:6667
- channel: #IRCz
To deal with potential issues, please open a ticket on GitHub.
discutea/forum-bundle 适用场景与选型建议
discutea/forum-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.94k 次下载、GitHub Stars 达 28, 最近一次更新时间为 2016 年 04 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「forum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 discutea/forum-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 discutea/forum-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 discutea/forum-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel 5 package providing a solid foundation for building discussion forums
A frontend for riari/laravel-forum providing views written with Bootstrap 3
This Bundle provides threaded comment functionality for Symfony applications
Collection of core phpBB libraries
Laravel powered forums.
A package to provide extended functionality for the beautiful thedevdojo/chatter forums for Laravel
统计信息
- 总下载量: 2.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-28