reytabs/laravel-forum
Composer 安装命令:
composer require reytabs/laravel-forum
包简介
A Laravel 6/7/8/9 package providing a solid foundation for building discussion forums
README 文档
README
Complete documentation is available on teamteatime.net.
Versions
| Laravel version | Package version | PHP version |
|---|---|---|
| 10 | ^5.5 | ^8.1 |
| 9 | ^5.3 | ^8.0 |
| 6 - 8 | ^5.0 | ^7.4 |
| 5 | ^4.0 | ^7.4 |
See the support policy in the Laravel docs for more information about Laravel release versions, their supported PHP versions, and how long they receive bug & security fixes.
Installation
Step 1: Install the package
Install the package via composer:
composer require riari/laravel-forum:~5.0
Package Discovery should take care of registering the service provider automatically, but if you need to do so manually, add the service provider to your config/app.php:
TeamTeaTime\Forum\ForumServiceProvider::class,
Step 2: Publish the package files
Run the vendor:publish command to publish the package config, translations and migrations to your app's directories:
php artisan vendor:publish
Step 3: Update your database
Run your migrations:
php artisan migrate
Step 4: Install a UI preset
As of 5.6.0, a forum:install command is available for installing UI presets. The available preset options are bootstrap (for a Bootstrap 5 UI) and tailwind (for a Tailwind CSS UI). You must install one of these to publish the corresponding views to your application. For example:
php artisan forum:install tailwind
Additional steps
Configuration
Several configuration files are published to your application's config directory, each prefixed with forum.. Refer to these for a variety of options for changing the behaviour of the forum and how it integrates with key parts of your application code.
You may need to modify the
forum.integration.user_nameconfig option according to your user model. This specifies which attribute on the user model should be used as a display name in the forum views.
Translations
Laravel Forum currently supports 15 languages: German, English, Spanish, French, Italian, Dutch, Romanian, Russian, Thai, Turkish, Serbian, Portuguese (Brazil), Swedish, Chinese, and Indonesian. The translation files are published to resources/lang/vendor/forum/{locale}. Some new language strings have been introduced in 5.0 but not yet translated; PRs to translate these would be greatly appreciated.
Development
If you wish to contribute, an easy way to set up the package for local development is Team-Tea-Time/laravel-studio, which is set up to load a local working copy of this repository (see the readme for usage details).
Running tests
Bring up the MySQL service:
docker-compose up -d mysql
Install Composer dependencies:
docker-compose run --rm composer install
Run the phpunit container to execute tests:
docker-compose run --rm phpunit
Seeding
The package tables can be seeded with sample categories, threads, posts, and a user via forum:seed:
docker-compose exec php-fpm php artisan forum:seed
reytabs/laravel-forum 适用场景与选型建议
reytabs/laravel-forum 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 932 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「forum」 「laravel」 「discuss」 「laravel-6」 「laravel-7」 「laravel-8」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 reytabs/laravel-forum 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 reytabs/laravel-forum 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 reytabs/laravel-forum 相关的其它包
同方向 / 同关键字的高下载量 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
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
Laravel forum package
统计信息
- 总下载量: 932
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-26
