PHPackages                             serhiikorniienko/laravel-reportify - 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. serhiikorniienko/laravel-reportify

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

serhiikorniienko/laravel-reportify
==================================

Simple Laravel package for content reporting and moderation

10[4 PRs](https://github.com/SerhiiKorniienko/laravel-reportify/pulls)PHPCI passing

Since Oct 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/SerhiiKorniienko/laravel-reportify)[ Packagist](https://packagist.org/packages/serhiikorniienko/laravel-reportify)[ RSS](/packages/serhiikorniienko-laravel-reportify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Simple Laravel package for content reporting and moderation
===========================================================

[](#simple-laravel-package-for-content-reporting-and-moderation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f1cd1dd28672ce58ef1e3e8a2d3404c666cfdeb950e5e316a249a28959f5345c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7365726869696b6f726e6969656e6b6f2f6c61726176656c2d7265706f72746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/serhiikorniienko/laravel-reportify)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c6640c747486f5938d299cb9f97600d3db312d1f5f4f45d58cef0f544cfab285/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7365726869696b6f726e6969656e6b6f2f6c61726176656c2d7265706f72746966792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/serhiikorniienko/laravel-reportify/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a6fc13469dc7b650c0f010c697f35244b4cc3f19ad30222f6ee6b55c4417b604/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7365726869696b6f726e6969656e6b6f2f6c61726176656c2d7265706f72746966792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/serhiikorniienko/laravel-reportify/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5e9c59ca2cabcf576b0fb327daa21994ef29f91c8b900f2db18f6aa5b068e89c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365726869696b6f726e6969656e6b6f2f6c61726176656c2d7265706f72746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/serhiikorniienko/laravel-reportify)

Simple, yet powerful package for content reporting and moderation in Laravel applications. Add a `Reportable` trait to your models and you're ready to go.

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

[](#installation)

You can install the package via composer:

```
composer require serhiikorniienko/laravel-reportify
```

You can simply run install command to publish config, migrations and migrate the database:

```
php artisan reportify:install
```

Alternatively, you can publish the migration and config file separately:

```
php artisan vendor:publish --tag="reportify-migrations"
php artisan migrate
```

And a config file:

```
php artisan vendor:publish --tag="reportify-config"
```

Configuration
-------------

[](#configuration)

Basic configuration is stored in `config/reportify.php` file. You can change the default values there.

`global_threshold` - the number of reports required to mark a content as inappropriate for everyone.

```
return [
    'global_threshold' => 3,
];
```

Usage
-----

[](#usage)

Add the `Reportable` trait to get started

```
use SerhiiKorniienko\Reportify\Reportable;

class MyModel extends Model
{
    // this trait adds the ability to report the model
    use Reportable;
}
```

Report your model using the `report` method

```
    $model->report()
        ->withReporter($user)
        ->withReason('This is inappropriate content')
        ->withStatus('pending')
        ->create();
```

Check if the model should be available to a user

```
    $model->visibleFor($user);
```

Currently, reportable model would not be visible for a user who has reported it. Also, it would not be visible for all users if the number of reports exceeds the global threshold.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [SerhiiKorniienko](https://github.com/SerhiiKorniienko)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance60

Regular maintenance activity

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f328c0182d60b0db1938a93d2dbeace1adb48397d5f2b00bf2a4465d64a2b9f?d=identicon)[serhiikorniienko](/maintainers/serhiikorniienko)

---

Top Contributors

[![SerhiiKorniienko](https://avatars.githubusercontent.com/u/95961352?v=4)](https://github.com/SerhiiKorniienko "SerhiiKorniienko (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

### Embed Badge

![Health badge](/badges/serhiikorniienko-laravel-reportify/health.svg)

```
[![Health](https://phpackages.com/badges/serhiikorniienko-laravel-reportify/health.svg)](https://phpackages.com/packages/serhiikorniienko-laravel-reportify)
```

PHPackages © 2026

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