PHPackages                             whilesmart/eloquent-feedback - 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. whilesmart/eloquent-feedback

ActiveLibrary

whilesmart/eloquent-feedback
============================

Customer feedback, reviews and testimonials for Laravel: a triage and sentiment layer over eloquent-forms.

0.1.0(today)00MITPHPPHP ^8.3CI passing

Since Jul 23Pushed todayCompare

[ Source](https://github.com/whilesmartphp/eloquent-feedback)[ Packagist](https://packagist.org/packages/whilesmart/eloquent-feedback)[ RSS](/packages/whilesmart-eloquent-feedback/feed)WikiDiscussions dev Synced today

READMEChangelog (1)Dependencies (6)Versions (5)Used By (0)

Eloquent Feedback
=================

[](#eloquent-feedback)

Customer feedback, reviews and testimonials for Laravel. A triage and sentiment layer built on top of [`whilesmart/eloquent-forms`](https://github.com/whilesmartphp/eloquent-forms): your app collects submissions through any feedback form it likes, and this package turns the ones you care about into owner-scoped feedback with a lifecycle you can act on.

How it fits together
--------------------

[](#how-it-fits-together)

- **Forms collect, feedback interprets.** You define feedback forms with `eloquent-forms` (a bug report, an NPS prompt, a "leave a testimonial" box). A submission is raw input; a feedback record is a triageable item with a type, a status, a rating and a sentiment.
- **A form key maps to a feedback type.** `config('feedback.forms')` maps each form key to the kind of feedback its submissions become. When a mapped form is submitted, a listener creates a `Feedback` record owned by the form's owner. Unmapped submissions are ignored (a plain contact form stays a submission, not feedback).
- **Ownership is polymorphic.** Feedback belongs to an `owner` morph (a workspace, a product, a page) exactly like the rest of the WhileSmart packages. Access is enforced through `whilesmart/eloquent-owner-access`.

Install
-------

[](#install)

```
composer require whilesmart/eloquent-feedback
```

Publish the config to set up your form map:

```
php artisan vendor:publish --tag=feedback-config
```

```
// config/feedback.php
'forms' => [
    'bug-report' => 'bug',
    'nps' => 'nps',
    'testimonials' => 'testimonial',
],
```

Endpoints
---------

[](#endpoints)

Owner-scoped (behind `route_middleware`):

- `GET    /api/feedback` — triage list, filter by `type`, `status`, `sentiment`, `is_public`, `q`
- `GET    /api/feedback/summary` — totals, average rating, NPS, breakdowns
- `GET    /api/feedback/{feedback}`
- `PATCH  /api/feedback/{feedback}` — move status, set sentiment/rating, publish
- `DELETE /api/feedback/{feedback}`

Public (behind `public_middleware`):

- `GET    /api/testimonials?owner_type=&owner_id=` — feedback the owner marked public

Sentiment
---------

[](#sentiment)

Sentiment is a seam. Out of the box nothing is inferred (`NullSentimentAnalyzer`). Bind your own to classify feedback text as it arrives:

```
$this->app->bind(
    \Whilesmart\Feedback\Contracts\SentimentAnalyzer::class,
    \App\Feedback\LlmSentimentAnalyzer::class,
);
```

Events
------

[](#events)

- `FeedbackReceived` — a submission became feedback. Bridge to notifications, CRM, Slack.
- `FeedbackStatusChanged` — the lifecycle moved. Carries the previous and new status.

Owning feedback
---------------

[](#owning-feedback)

Add the trait to any model that should own feedback:

```
use Whilesmart\Feedback\Traits\HasFeedback;

class Workspace extends Model
{
    use HasFeedback; // $workspace->feedback
}
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

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

---

Top Contributors

[![nfebe](https://avatars.githubusercontent.com/u/14317775?v=4)](https://github.com/nfebe "nfebe (3 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/whilesmart-eloquent-feedback/health.svg)

```
[![Health](https://phpackages.com/badges/whilesmart-eloquent-feedback/health.svg)](https://phpackages.com/packages/whilesmart-eloquent-feedback)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k4.0k](/packages/leantime-leantime)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3518.3k](/packages/duncanmcclean-statamic-cargo)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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