PHPackages                             gamalkh299/gpt-content-reviewer - 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. gamalkh299/gpt-content-reviewer

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

gamalkh299/gpt-content-reviewer
===============================

A Laravel package to review content and images using ChatGPT API

1.0.0(1y ago)1321[3 PRs](https://github.com/gamalkh299/gpt-content-reviewer/pulls)MITPHPPHP ^8.2CI passing

Since Dec 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/gamalkh299/gpt-content-reviewer)[ Packagist](https://packagist.org/packages/gamalkh299/gpt-content-reviewer)[ Docs](https://github.com/gamalkh299/gpt-content-reviewer)[ GitHub Sponsors]()[ RSS](/packages/gamalkh299-gpt-content-reviewer/feed)WikiDiscussions main Synced 1mo ago

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

A Laravel package to review content and images using ChatGPT API
================================================================

[](#a-laravel-package-to-review-content-and-images-using-chatgpt-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/70535673c06747fa388cc706856c581902122d2b94dd2f96f8985bbd1f94bf3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67616d616c6b683239392f6770742d636f6e74656e742d72657669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gamalkh299/gpt-content-reviewer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/37541fe3853970ee0b104b05eadbef3bf6cd7ad682051ffb4e62e7b2bb4c2404/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67616d616c6b683239392f6770742d636f6e74656e742d72657669657765722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/gamalkh299/gpt-content-reviewer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/799908934285d5870c1ecfff027e341fdcfb7203ae2710be5562fd3bfdd09141/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67616d616c6b683239392f6770742d636f6e74656e742d72657669657765722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/gamalkh299/gpt-content-reviewer/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8f267d59b39c0b18732de94632451eec07db283a66fc3d245ba30b2262a1ccdd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67616d616c6b683239392f6770742d636f6e74656e742d72657669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gamalkh299/gpt-content-reviewer)

This package allows you to review the content of a model using ChatGPT Moderation API.

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

[](#installation)

You can install the package via composer:

```
composer require gamalkh299/gpt-content-reviewer
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="gpt-content-reviewer"
php artisan migrate
```

This is the contents of the published config file:

```
return [
    'key' => env('CHAT_GPT_API_KEY'),
    'queue' => env('GPT_QUEUE', 'gpt-content-reviewer'),
];
```

Usage
-----

[](#usage)

- At fisrt, you need to get an API key from [ChatGPT](https://www.openai.com/).
- Then, you need to add the API key to your `.env` file.

```
CHAT_GPT_API_KEY=your-api-key
```

Then add the following trait to the model you want to review its content.

```
use gamalkh\GptContentReviewer\Traits\Reviewable;
```

Don't forget to implement the **getReviewableColumns** abstract function to specify the columns you want to review and **handleReviewResult** abstract function to handle the review result.

```
public function getReviewableColumns(): array
{
   // return the columns you want to review
    return ['content'];
}

public function handleReviewResult($result)
{
    // handle the review result
}
```

before you use it you need to run the following command to create the review table.

```
php artisan queue:work --queue=gpt-content-reviewer
```

you can use the package to create a review for a model and it will be added to the queue to be reviewed.

```
$model = Model::find(1);
$gptContentReviewer = new gamalkh\GptContentReviewer();
$gptContentReviewer->createReview($model);
```

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)

- [Gamal Khaled](https://github.com/gamalkh299)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance69

Regular maintenance activity

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

506d ago

### Community

Maintainers

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

---

Top Contributors

[![gamalkh299](https://avatars.githubusercontent.com/u/77986508?v=4)](https://github.com/gamalkh299 "gamalkh299 (41 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelGamal Khaledgpt-content-reviewer

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gamalkh299-gpt-content-reviewer/health.svg)

```
[![Health](https://phpackages.com/badges/gamalkh299-gpt-content-reviewer/health.svg)](https://phpackages.com/packages/gamalkh299-gpt-content-reviewer)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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