PHPackages                             munizeverton/chatter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. munizeverton/chatter

ActiveLibrary[Framework](/categories/framework)

munizeverton/chatter
====================

A simple forum package for your laravel app

0.2.18(8y ago)020[1 PRs](https://github.com/munizeverton/chatter/pulls)PHP

Since Aug 18Pushed 5y agoCompare

[ Source](https://github.com/munizeverton/chatter)[ Packagist](https://packagist.org/packages/munizeverton/chatter)[ RSS](/packages/munizeverton-chatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (50)Used By (0)

[![](https://raw.githubusercontent.com/thedevdojo/chatter/master/public/assets/images/logo.png)](https://raw.githubusercontent.com/thedevdojo/chatter/master/public/assets/images/logo.png)

[![Build Status](https://camo.githubusercontent.com/db36b1f563e937e5a6b2b610606d5062d3a7469a434ae64bf66f6128611dc592/68747470733a2f2f7472617669732d63692e6f72672f746865646576646f6a6f2f636861747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thedevdojo/chatter)[![Build Status](https://camo.githubusercontent.com/e64aaf37169992cb4066f0e4e2db38bd6c1f8ab70a4748fe45c67aa3d1026d3c/68747470733a2f2f7374796c6563692e696f2f7265706f732f36343531383333332f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/64518333/shield?style=flat)[![Total Downloads](https://camo.githubusercontent.com/ba3f7ad1ca61b375d91c17081d2caefd66be2630366fa903bdf90acf8d2184ae/68747470733a2f2f706f7365722e707567782e6f72672f646576646f6a6f2f636861747465722f646f776e6c6f6164732e7376673f666f726d61743d666c6174)](https://packagist.org/packages/devdojo/chatter)[![Latest Stable Version](https://camo.githubusercontent.com/f52930a0889a9d92d20804d27f5ee73d3978ea52593df00b1117670764f709dd/68747470733a2f2f706f7365722e707567782e6f72672f646576646f6a6f2f636861747465722f762f737461626c652e7376673f666f726d61743d666c6174)](https://packagist.org/packages/devdojo/chatter)[![License](https://camo.githubusercontent.com/8858446d9006a31ada7f02717ddacf8b8529ccdb385c2401406718a7948bf990/68747470733a2f2f706f7365722e707567782e6f72672f646576646f6a6f2f636861747465722f6c6963656e73652e7376673f666f726d61743d666c6174)](https://packagist.org/packages/tcg/voyager)

Laravel Forum Package - Chatter
===============================

[](#laravel-forum-package---chatter)

### Installation

[](#installation)

Quick Note: If this is a new project, make sure to install the default user authentication provided with Laravel. `php artisan make:auth`

1. Include the package in your project

    ```
    composer require "devdojo/chatter=0.2.*"

    ```
2. Add the service provider to your `config/app.php` providers array:

    **If you're installing on Laravel 5.5+ skip this step**

    ```
    DevDojo\Chatter\ChatterServiceProvider::class,

    ```
3. Publish the Vendor Assets files by running:

    ```
    php artisan vendor:publish --provider="DevDojo\Chatter\ChatterServiceProvider"

    ```
4. Now that we have published a few new files to our application we need to reload them with the following command:

    ```
    composer dump-autoload

    ```
5. Run Your migrations:

    ```
    php artisan migrate

    ```

    Quick tip: Make sure that you've created a database and added your database credentials in your `.env` file.
6. Lastly, run the seed files to seed your database with a little data:

    ```
    php artisan db:seed --class=ChatterTableSeeder

    ```
7. Inside of your master.blade.php file include a header and footer yield. Inside the head of your master or app.blade.php add the following:

    ```
    @yield('css')

    ```

    Then, right above the `` tag of your master file add the following:

    ```
    @yield('js')

    ```

Now, visit your site.com/forums and you should see your new forum in front of you!

### Upgrading

[](#upgrading)

Make sure that your composer.json file is requiring the latest version of chatter:

```
"devdojo/chatter": "0.2.*"

```

Then you'll run:

```
composer update

```

Next, you may want to re-publish the chatter assets, chatter config, and the chatter migrations by running the following:

```
php artisan vendor:publish --tag=chatter_assets --force
php artisan vendor:publish --tag=chatter_config --force
php artisan vendor:publish --tag=chatter_migrations --force

```

Next to make sure you have the latest database schema run:

```
php artisan migrate

```

And you'll be up-to-date with the latest version :)

### Markdown editor

[](#markdown-editor)

If you are going to make use of the markdown editor instead of tinymce you will need to change that in your config/chatter.php:

```
'editor' => 'simplemde',

```

In order to properly display the posts you will need to include the `graham-campbell/markdown` library for Laravel:

```
composer require graham-campbell/markdown

```

### Trumbowyg editor

[](#trumbowyg-editor)

If you are going to use Trumbowyg as your editor of choice you will need to change that in your config/chatter.php:

```
'editor' => 'trumbowyg',

```

Trumbowyg requires jQuery &gt;= 1.8 to be included.

### VIDEOS

[](#videos)

[Introduction and Installation of Chatter](https://devdojo.com/episode/create-a-laravel-forum)

### Configuration

[](#configuration)

When you published the vendor assets you added a new file inside of your `config` folder which is called `config/chatter.php`. This file contains a bunch of configuration you can use to configure your forums

### Customization

[](#customization)

*CUSTOM CSS*

If you want to add additional style changes you can simply add another stylesheet at the end of your `@yield('css')` statement in the head of your master file. In order to only load this file when a user is accessing your forums you can include your stylesheet in the following `if` statement:

```
@if(Request::is( Config::get('chatter.routes.home') ) || Request::is( Config::get('chatter.routes.home') . '/*' ))

@endif

```

*SEO FRIENDLY PAGE TITLES*

Since the forum uses your master layout file, you will need to include the necessary code in order to display an SEO friendly title for your page. The following code will need to be added to the `` of your master file:

```
@if( Request::is( Config::get('chatter.routes.home')) )
    Title for your forum homepage -  Website Name
@elseif( Request::is( Config::get('chatter.routes.home') . '/' . Config::get('chatter.routes.category') . '/*' ) && isset( $discussion ) )
    {{ $discussion->category->name }} - Website Name
@elseif( Request::is( Config::get('chatter.routes.home') . '/*' ) && isset($discussion->title))
    {{ $discussion->title }} - Website Name
@endif

```

*OVERRIDING VIEWS*

In order to override Chatter's built in views, simply create a `chatter` folder in your `vendor` views folder, i.e. `ROOT/resources/views/vendor/chatter`. Then simply drop in the Chatter view files you would like to override.

- [home.blade.php](https://github.com/thedevdojo/chatter/blob/master/src/Views/home.blade.php)
- [discussion.blade.php](https://github.com/thedevdojo/chatter/blob/master/src/Views/discussion.blade.php)

### Custom Function Hooks for the forum

[](#custom-function-hooks-for-the-forum)

Sometimes you may want to add some additional functionality when a user creates a new discussion or adds a new response. Well, there are a few built in functions that you can create in your script to access this functionality:

*Before User Adds New Discussion*Create a new global function in your script called:

```
function chatter_before_new_discussion($request, $validator){}

```

Note: that the `$request` object is passed with the user input for each webhook. You can use it if you would like :) If not, no worries just add your custom functionality.

*After User Adds New Discussion*Create a new global function in your script called:

```
function chatter_after_new_discussion($request){}

```

*Before User Adds New Response*Create a new global function in your script called:

```
function chatter_before_new_response($request, $validator){}

```

*After User Adds New Response*Create a new global function in your script called:

```
function chatter_after_new_response($request){}

```

### Laravel [Events](https://laravel.com/docs/events) for the forum

[](#laravel-events-for-the-forum)

This package provides a number of events allowing you to respond to user actions as they happen:

EventAvailable propertiesDescription`ChatterBeforeNewDiscussion``Illuminate\Http\Request ($request)`, `Illuminate\Validation\Validator ($validator)`This event is fired *before* a discussion is validated and created`ChatterAfterNewDiscussion``Illuminate\Http\Request ($request)`, `Models::discussion() ($discussion)`, `Models::post() ($post)`This event is fired *after* a discussion has been validated and created`ChatterBeforeNewResponse``Illuminate\Http\Request ($request)`, `Illuminate\Validation\Validator ($validator)`This event is fired *before* a response is validated and created`ChatterAfterNewResponse``Illuminate\Http\Request ($request)`, `Models::post() ($post)`This event is fired *after* a response is validated and created#### Listening for Events

[](#listening-for-events)

To register your listeners for these events, follow the [Laravel documentation for registering events and listeners](https://laravel.com/docs/events#registering-events-and-listeners). For example, to register a listener for the "before new discussion" event, add the following to your `EventServiceProvider`:

```
protected $listen = [
    'DevDojo\Chatter\Events\ChatterBeforeNewDiscussion' => [
        'App\Listeners\HandleNewDiscussion',
    ],
];
```

where `App\Listeners\HandleNewDiscussion` is a class in your application which handles the event when it's fired.

You can access the object that triggered the event in your listener with

```
    public function handle(ChatterAfterNewDiscussion $event)
    {
        // $event->discussion
        // $event->post
    }
```

and

```
    public function handle(ChatterAfterNewResponse $event)
    {
        // $event->post
    }
```

### Screenshots

[](#screenshots)

[![](https://raw.githubusercontent.com/thedevdojo/chatter/master/public/assets/images/chatter-screenshot.jpg)](https://raw.githubusercontent.com/thedevdojo/chatter/master/public/assets/images/chatter-screenshot.jpg)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

44

Last Release

2958d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e000ad5659ee4cafc4bb9edeaaa7a0d5d7025935412265f212ef27f0bfb37e3?d=identicon)[Everton Muniz](/maintainers/Everton%20Muniz)

---

Top Contributors

[![tnylea](https://avatars.githubusercontent.com/u/601261?v=4)](https://github.com/tnylea "tnylea (101 commits)")[![marktopper](https://avatars.githubusercontent.com/u/2232539?v=4)](https://github.com/marktopper "marktopper (43 commits)")[![chrisbbreuer](https://avatars.githubusercontent.com/u/6228425?v=4)](https://github.com/chrisbbreuer "chrisbbreuer (21 commits)")[![aaronranard](https://avatars.githubusercontent.com/u/910926?v=4)](https://github.com/aaronranard "aaronranard (12 commits)")[![LucasLeandro1204](https://avatars.githubusercontent.com/u/13268691?v=4)](https://github.com/LucasLeandro1204 "LucasLeandro1204 (9 commits)")[![ThomasBS](https://avatars.githubusercontent.com/u/5128963?v=4)](https://github.com/ThomasBS "ThomasBS (6 commits)")[![timacdonald](https://avatars.githubusercontent.com/u/24803032?v=4)](https://github.com/timacdonald "timacdonald (5 commits)")[![galdazbiz](https://avatars.githubusercontent.com/u/658251?v=4)](https://github.com/galdazbiz "galdazbiz (4 commits)")[![ElenaMainerici](https://avatars.githubusercontent.com/u/5088477?v=4)](https://github.com/ElenaMainerici "ElenaMainerici (3 commits)")[![mhanoglu](https://avatars.githubusercontent.com/u/8195419?v=4)](https://github.com/mhanoglu "mhanoglu (2 commits)")[![mattlibera](https://avatars.githubusercontent.com/u/6657359?v=4)](https://github.com/mattlibera "mattlibera (1 commits)")[![munizeverton](https://avatars.githubusercontent.com/u/2388903?v=4)](https://github.com/munizeverton "munizeverton (1 commits)")[![napestershine](https://avatars.githubusercontent.com/u/8603325?v=4)](https://github.com/napestershine "napestershine (1 commits)")[![putera](https://avatars.githubusercontent.com/u/314314?v=4)](https://github.com/putera "putera (1 commits)")[![SeanWhelan](https://avatars.githubusercontent.com/u/15476845?v=4)](https://github.com/SeanWhelan "SeanWhelan (1 commits)")[![steffen25](https://avatars.githubusercontent.com/u/9927227?v=4)](https://github.com/steffen25 "steffen25 (1 commits)")[![idbendriss](https://avatars.githubusercontent.com/u/8147175?v=4)](https://github.com/idbendriss "idbendriss (1 commits)")[![GGGGGGGG](https://avatars.githubusercontent.com/u/3520402?v=4)](https://github.com/GGGGGGGG "GGGGGGGG (1 commits)")[![firescript](https://avatars.githubusercontent.com/u/1789978?v=4)](https://github.com/firescript "firescript (1 commits)")[![gerbenjacobs](https://avatars.githubusercontent.com/u/715095?v=4)](https://github.com/gerbenjacobs "gerbenjacobs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/munizeverton-chatter/health.svg)

```
[![Health](https://phpackages.com/badges/munizeverton-chatter/health.svg)](https://phpackages.com/packages/munizeverton-chatter)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
