PHPackages                             condoedge/discussions - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. condoedge/discussions

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

condoedge/discussions
=====================

Channels, discussions and chat components for Kompo applications

v0.0.29(2w ago)02.9k↓61.1%[2 PRs](https://github.com/condoedge/discussions/pulls)MITPHPPHP ^8.1

Since Mar 1Pushed 2w ago1 watchersCompare

[ Source](https://github.com/condoedge/discussions)[ Packagist](https://packagist.org/packages/condoedge/discussions)[ RSS](/packages/condoedge-discussions/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (28)Versions (33)Used By (0)

condoedge/discussions
=====================

[](#condoedgediscussions)

Channels, discussions and chat components for Kompo applications.

What it provides
----------------

[](#what-it-provides)

- **Models**: `Channel`, `Discussion` (self-referencing for replies/subjects), `DiscussionRead` (read receipts), `DiscussionBox` (archive/trash per user), `Member` (channel membership pivot).
- **Komponents**: `ChannelsView` (3-column chat page), `ChannelsList` / `ChannelsListTeam`, `ChannelSubjectsList`, `ChannelDiscussionsPanel`, `DiscussionForm`, `SingleDiscussionCard`, `ProjectDiscussionThread`, `ChannelSettingsForm`.
- **Policies**: `ChannelPolicy` / `DiscussionPolicy`, registered automatically (membership-based).
- **Broadcasting**: a `DiscussionSent` event broadcast on the private channel `discussion.{teamId}`; the channel authorization callback is registered by the package's service provider.

Installation
------------

[](#installation)

```
composer require condoedge/discussions
```

The service provider is auto-discovered. Migrations load automatically (`php artisan migrate`).

Route registration
------------------

[](#route-registration)

The package does not auto-register routes. Call the static registrars from your app's route files, inside your auth middleware group:

```
Route::middleware(['auth'])->group(function () {
    \Kompo\Discussions\Services\DiscussionsService::setAllRoutes();      // discussions pages
    \Kompo\Discussions\Services\DiscussionsService::setAllModalRoutes(); // channel-settings modal
});
```

Live refresh (Pusher)
---------------------

[](#live-refresh-pusher)

The chat lists refresh live through Laravel broadcasting. The host app must have broadcasting enabled:

1. Enable `App\Providers\BroadcastServiceProvider` in `config/app.php` (registers `/broadcasting/auth`).
2. Set `BROADCAST_DRIVER=pusher` and the `PUSHER_*` / `MIX_PUSHER_*` env values.
3. `composer require pusher/pusher-php-server`.
4. Make sure the front-end bundle initializes Echo (kompo's `withBroadcasting()`).

The package takes care of the rest: the `discussion.{teamId}` channel authorization (team membership) and the event-name wiring between `DiscussionSent::broadcastAs()` and the komponents' `pusherRefresh`.

Styling
-------

[](#styling)

Import the package stylesheet in your app's scss:

```
@import "../../vendor/condoedge/discussions/resources/scss/discussions";
```

The chat page (`.discussions-page`) sizes itself to the area below your app's navbar; no fixed viewport heights are used.

Host integration points
-----------------------

[](#host-integration-points)

- Listen to `Kompo\Discussions\Events\DiscussionSent` (exposes `getDiscussion()`) for notifications.
- Override the team users available in a channel by defining `getAvailableUsersForChannel($channel, $search)` on your Team model.
- Translations are flat JSON keys (`discussions.*`) for the `en` and `fr` locales; app-level JSON translations override them.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance96

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% of commits — single point of failure

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 ~32 days

Recently: every ~0 days

Total

27

Last Release

20d ago

PHP version history (2 changes)v0.0.1PHP ^7.3|^8.0

v0.0.22PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b723bc3b74495836b78647de6a763c5bd5f7a30a1647bc0da8b344fecd29631b?d=identicon)[Anonimatrix](/maintainers/Anonimatrix)

---

Top Contributors

[![Ez-Bruno](https://avatars.githubusercontent.com/u/56374691?v=4)](https://github.com/Ez-Bruno "Ez-Bruno (30 commits)")[![decizifone](https://avatars.githubusercontent.com/u/72714635?v=4)](https://github.com/decizifone "decizifone (3 commits)")[![kompo](https://avatars.githubusercontent.com/u/58952986?v=4)](https://github.com/kompo "kompo (1 commits)")

### Embed Badge

![Health badge](/badges/condoedge-discussions/health.svg)

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

###  Alternatives

[nasirkhan/module-manager

Module Manager &amp; Generator for Laravel Starter Kit (https://github.com/nasirkhan/laravel-starter)

1044.6k5](/packages/nasirkhan-module-manager)[nunomaduro/laravel-starter-kit-inertia-react

The skeleton application for the Laravel framework.

2071.1k](/packages/nunomaduro-laravel-starter-kit-inertia-react)

PHPackages © 2026

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