PHPackages                             fredbradley/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fredbradley/feedback

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fredbradley/feedback
====================

My mildly awesome package

v0.0.4(4y ago)05MITPHPPHP ^7.4|^8.0

Since Dec 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fredbradley/laravel-feedback-package)[ Packagist](https://packagist.org/packages/fredbradley/feedback)[ Docs](https://github.com/fredbradley/feedback)[ RSS](/packages/fredbradley-feedback/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Store feedback from multiple apps into one shared database
==========================================================

[](#store-feedback-from-multiple-apps-into-one-shared-database)

[![Latest Version on Packagist](https://camo.githubusercontent.com/94ff5bfa64151e1148d579ccfdfd2365a3d5147f18f6e5e4593e8a9b60cb0bbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66726564627261646c65792f666565646261636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fredbradley/feedback)[![Total Downloads](https://camo.githubusercontent.com/538193ea0f8296c73be8e5007e9350fcf42b132d3d83b675ed6a3ecc8fa38a3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66726564627261646c65792f666565646261636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fredbradley/feedback)[![GitHub Actions](https://github.com/fredbradley/feedback/actions/workflows/main.yml/badge.svg)](https://github.com/fredbradley/feedback/actions/workflows/main.yml/badge.svg)

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

[](#installation)

You can install the package via composer:

```
composer require fredbradley/feedback
```

You'll need to create a database and then add the connection to your app's `config/database.php` file as follows. The connection name must be **`laravel-feedback`**.

```
/**
 * This assumes that you're putting your Feedback database into a MySQL with similar credentials
 * to your default MySQL connection. You can use any database connection you wish.
 */
'laravel-feedback' => [
    'driver'      => 'mysql',
    'host'        => env('DB_HOST', '127.0.0.1'),
    'port'        => env('DB_PORT', '3306'),
    'database'    => 'feedback', // can be anything you want
    'username'    => env('DB_USERNAME', 'forge'),
    'password'    => env('DB_PASSWORD', ''),
    'unix_socket' => env('DB_SOCKET', ''),
    'charset'     => 'utf8mb4',
    'collation'   => 'utf8mb4_unicode_ci',
    'prefix'      => '',
    'strict'      => true,
    'engine'      => null,
],
```

You can then run `php artisan feedback:migrate` which will create the necesary two tables into the database using THAT connection.

Usage
-----

[](#usage)

```
// Log some feedback, takes an array of questions and answers, and a free LONGTEXT field.
Feedback::log(
    [
        "Did you do everything you wanted to do today?" => "Yes",
        "Would message would you like to give to the developers?" => "They're bloody brilliant!",
    ],
    "I was also thinking it would be cool if you could flash the page pink when something fun happens, and perhaps animate some unicorns flying across the page!"
);
/**
 * When submitted the package will grab the UserAgent of the client that has submitted the feedback,
 * along with the site url and site name (from config/app.php). It also saves the ID of the
 * Authenticatable model of your app. So you can track specific users giving specific
 * feedback, so that you can give them a better user experience.
 */
```

#### Return Value Example

[](#return-value-example)

```
FredBradley\Feedback\Models\FeedbackRecord {#3053
     site_id: 1,
     feedback: "{"Do you enjoy chocolate?":"Yes, I bloomin love it!","Would you eat more chocolate if you could":"Absolutely"}",
     client_meta: "{"UserAgent":"Symfony","UserID":null}",
     other_comments: "Can you send more more chocolate, please?",
     updated_at: "2021-12-21 15:58:05",
     created_at: "2021-12-21 15:58:05",
     id: 1,
   }
```

```
// Get all the feedback for your container app
Feedback::bySite();

// Get all feedback from any site by url
Feedback::bySite('https://mysite.example.com'); // This URL has to match the value of `config('app.url')` on any package that this is installed into.
```

### Testing 😂

[](#testing-)

*Yeah, sorry - not written any tests yet!*

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Fred Bradley](https://github.com/fredbradley)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~8 days

Total

4

Last Release

1585d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1639226?v=4)[Fred Bradley](/maintainers/fredbradley)[@fredbradley](https://github.com/fredbradley)

---

Top Contributors

[![fredbradley](https://avatars.githubusercontent.com/u/1639226?v=4)](https://github.com/fredbradley "fredbradley (16 commits)")

---

Tags

feedbackfredbradley

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[ondrakoupil/heureka-recenze

Knihovna pro snadný import recenzí e-shopu a produktů z Heuréka.cz

1192.2k](/packages/ondrakoupil-heureka-recenze)[mydnic/nova-kustomer

Laravel Nova Kustomer Feedback Tool

2017.8k](/packages/mydnic-nova-kustomer)[mydnic/laravel-subscribers

Easily Manage Internal Newsletter Subscribers in Laravel — with campaigns, mail sending, and tracking

264.8k](/packages/mydnic-laravel-subscribers)

PHPackages © 2026

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