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

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

leopaulo88/gpt-trix-editor
==========================

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

v1.0.0(3y ago)04MITBladePHP ^8.0

Since Apr 15Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (4)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.

Features:

### New - Run GPT on selected/highlighted text 👇

[](#new---run-gpt-on-selectedhighlighted-text-)

[![](demo/run-on-selected-text.gif)](demo/run-on-selected-text.gif)

[![](demo/run.gif)](demo/run.gif)

[![](demo/check-grammar.gif)](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
```

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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

1124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a57771ac64d96a9889abf22a2ffd2edae7a10fc370ef957b1277381193954ce?d=identicon)[leopaulo](/maintainers/leopaulo)

---

Top Contributors

[![askerakbar](https://avatars.githubusercontent.com/u/43740952?v=4)](https://github.com/askerakbar "askerakbar (4 commits)")[![leopaulo88](https://avatars.githubusercontent.com/u/52747724?v=4)](https://github.com/leopaulo88 "leopaulo88 (2 commits)")

---

Tags

GPT-3filamentgpt-trix-editorfilament-field-for-gpt-3filament-3-grammar-check

### Embed Badge

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

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

###  Alternatives

[askerakbar/gpt-trix-editor

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

458.1k](/packages/askerakbar-gpt-trix-editor)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

58289.3k3](/packages/creagia-filament-code-field)[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.

320392.1k17](/packages/codewithdennis-filament-select-tree)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)

PHPackages © 2026

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