PHPackages                             askerakbar/gpt-trix-editor - 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. askerakbar/gpt-trix-editor

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

askerakbar/gpt-trix-editor
==========================

GPT Trix Editor package extends the default Trix editor features in the Filament PHP framework.

2.0.2(1y ago)458.1k16[4 issues](https://github.com/askerakbar/gpt-trix-editor/issues)[1 PRs](https://github.com/askerakbar/gpt-trix-editor/pulls)MITBladePHP ^8.0

Since Apr 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/askerakbar/gpt-trix-editor)[ Packagist](https://packagist.org/packages/askerakbar/gpt-trix-editor)[ Docs](https://github.com/askerakbar/gpt-trix-editor/)[ RSS](/packages/askerakbar-gpt-trix-editor/feed)WikiDiscussions main Synced yesterday

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

GPT Trix Editor 🪄
=================

[](#gpt-trix-editor-)

The GPT Trix Editor is a form field component for the Filament PHP framework that enhances the Trix editor with OpenAI GPT features.

[![Latest Version on Packagist](https://camo.githubusercontent.com/4ee9d715c2ab9914d730df85c5a84b2e79b7cb977aaf8e60f9b248daee22f792/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61736b6572616b6261722f6770742d747269782d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/askerakbar/gpt-trix-editor)[![Total Downloads](https://camo.githubusercontent.com/966d1f7a6faa320a28f45b223c79fa8b343ebb082eedb18d9c07811ce04fe43f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61736b6572616b6261722f6770742d747269782d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/askerakbar/gpt-trix-editor)

Features:

### New - Call ChatGPT API on selected/highlighted text 👇

[](#new---call-chatgpt-api-on-selectedhighlighted-text-)

[![](https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/run-on-selected-text.gif)](https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/run-on-selected-text.gif)

[![](https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/run.gif)](https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/run.gif)

[![](https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/check-grammar.gif)](https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/check-grammar.gif)

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

[](#installation)

You can install the package via composer:

```
composer require askerakbar/gpt-trix-editor
```

Quick Start
-----------

[](#quick-start)

1. Publish the configuration files by running the following commands:

```
php artisan vendor:publish --provider="OpenAI\Laravel\ServiceProvider"
php artisan vendor:publish --tag="gpt-trix-editor-config"
php artisan vendor:publish --tag="gpt-trix-editor-translations"
```

2. We're using  laravel package to call the OpenAI APIs, so you need to set your OpenAI API key in the .env file or in the config/openapi.php file:

```
OPENAI_API_KEY=YOUR_KEY
```

You can also set the GPT model in the .env

```
TRIX_GPT_MODEL=YOUR_MODEL
```

3. Optionally, you can customize the configuration file at config/gpt-trix-editor.php. This includes adding more prompts to the menu dropdown, setting temperature and max\_tokens.
4. Clear the configuration cache to make sure your changes take effect: `php artisan config:clear `
5. Done!

Usage
=====

[](#usage)

Import the field component:

```
use AskerAkbar\GptTrixEditor\Components\GptTrixEditor;
```

You can use the GPT Trix Editor field component like any other field component:

```
GptTrixEditor::make('content')->columnSpan('full');
```

By default, the GPT Toolbar Button is enabled in the GP Trix Editor. However, if you want to disable it, you can do so like this:

```
GptTrixEditor::make('content')->disableToolbarButtons([
    'gptTools',
])->columnSpan('full');
```

To do
-----

[](#to-do)

- ✅ Run the GPT actions on selected/highlighted text

Contribute / Report a bug / Security Vulnerabilities
----------------------------------------------------

[](#contribute--report-a-bug--security-vulnerabilities)

If you would like to contriubte, please feel free to submit pull requests or open issues.

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~129 days

Total

5

Last Release

670d ago

Major Versions

1.0.1 → 2.0.02024-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/27cd8f1d93e3e178a5294a8fc9e7570629b082b728754aae8f2d3d23be1c71a6?d=identicon)[asker-akbar](/maintainers/asker-akbar)

---

Top Contributors

[![askerakbar](https://avatars.githubusercontent.com/u/43740952?v=4)](https://github.com/askerakbar "askerakbar (7 commits)")[![craigvc](https://avatars.githubusercontent.com/u/13494843?v=4)](https://github.com/craigvc "craigvc (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![leopaulo88](https://avatars.githubusercontent.com/u/52747724?v=4)](https://github.com/leopaulo88 "leopaulo88 (1 commits)")

---

Tags

filament-pluginfilamentphpgpt-pluginslaravellaravel-packageGPT-3filamentgpt-trix-editorfilament-field-for-gpt-3filament-3-grammar-check

### Embed Badge

![Health badge](/badges/askerakbar-gpt-trix-editor/health.svg)

```
[![Health](https://phpackages.com/badges/askerakbar-gpt-trix-editor/health.svg)](https://phpackages.com/packages/askerakbar-gpt-trix-editor)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274325.8k8](/packages/croustibat-filament-jobs-monitor)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)

PHPackages © 2026

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