A Laravel package that replaces JavaScript popup boxes with SweetAlert2-based alerts, toasts and input prompts via a fluent PHP API.
Team-Tea-Time/laravel-forum
A slim forum package for Laravel that adds threads, posts and categories to an existing Laravel app with minimal setup.
- Stars
- 651
- Forks
- 173
- Open issues
- 4
- Last commit
- 5 days ago
What is it?
Laravel Forum is a PHP package that adds forum functionality to a Laravel application. It provides categories, threads, posts and related forum features, and is designed to be integrated into an existing project rather than run as a standalone system.
Installation is done through Composer, followed by publishing the package's config, translations and migrations, then running migrations. A UI preset is installed with an Artisan command; the default preset, livewire-tailwind, uses Livewire and Tailwind. Configuration files control forum behaviour and how the package connects to your user model, including which attribute is used as the display name.
The package ships with translations for 15 languages, including Chinese, and includes a command to seed sample categories, threads, posts and a user for testing. Versions are tied to specific Laravel and PHP releases, with Laravel 13 requiring PHP 8.3 or newer.
Key features
- 01Adds categories, threads and posts to a Laravel application.
- 02Installs via Composer and Artisan commands with package discovery.
- 03Provides UI presets, including a Livewire and Tailwind preset.
- 04Ships translations for 15 languages, including Chinese.
- 05Includes a command to seed sample forum data.
Use cases
- Adding a community discussion board to an existing Laravel website.
- Building a support or Q&A forum inside a Laravel-based product.
- Prototyping forum features with seeded sample data.
Quick start
- 1
Install the package via Composer
composer require riari/laravel-forum:^8.0 - 2
Publish the package config, translations and migrations
php artisan vendor:publish - 3
Run the database migrations
php artisan migrate - 4
Install a UI preset, for example livewire-tailwind
php artisan forum:preset-install livewire-tailwind
Things to know
- Requires Laravel 12 or 13 and PHP 8.2 or newer, so older Laravel apps are not supported.
- The default UI preset needs Livewire and other front-end dependencies.
- Older package versions are no longer maintained.
Topics
FAQ
- What is laravel-forum?
- A slim forum package for Laravel that adds threads, posts and categories to an existing Laravel app with minimal setup. Laravel Forum is a PHP package that adds forum functionality to a Laravel application. It provides categories, threads, posts and related forum features, and is designed to be integrated into an existing project rather than run as a standalone system.
- Is laravel-forum free to use? What license does it have?
- laravel-forum is open source under the MIT license. Check the license terms before using it in commercial products.
- Is laravel-forum still maintained?
- Actively maintained. The last commit to laravel-forum was on Nov 2, 2026.
- What can I use laravel-forum for?
- Adding a community discussion board to an existing Laravel website. Building a support or Q&A forum inside a Laravel-based product. Prototyping forum features with seeded sample data.
- How do I install laravel-forum?
- Install the package via Composer: composer require riari/laravel-forum:^8.0 Publish the package config, translations and migrations: php artisan vendor:publish Run the database migrations: php artisan migrate Install a UI preset, for example livewire-tailwind: php artisan forum:preset-install livewire-tailwind
- Where can I get laravel-forum?
- The source code and installation instructions are on GitHub: https://github.com/Team-Tea-Time/laravel-forum
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Flarum is a simple, fast discussion forum software for building online communities, built on PHP with an extensible architecture.
A set of PHP_CodeSniffer sniffs enforcing safer, cleaner and consistently formatted PHP code, many with automatic fixing.
A free, open-source bulletin board (forum) software written in PHP, with its development repository including version 2 history.
A Laravel package that lets you register routes by placing PHP 8 attributes directly on controller classes and methods.
A Laravel wrapper around PhpSpreadsheet for exporting collections, queries and Blade views to Excel or CSV, and importing spreadsheets into Eloquent models.