Download the PHP package naturalgroove/laravel-filament-rich-editor-source-ai without Composer

On this page you can find all versions of the php package naturalgroove/laravel-filament-rich-editor-source-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-filament-rich-editor-source-ai

Laravel Filament Rich Editor HTML Source with AI transformation

Latest Version on Packagist Total Downloads License

A powerful Filament 4.x plugin that enhances the Rich Editor component with editing HTML source capabilities and AI-powered HTML transformation. Edit raw HTML directly and leverage AI to clean, optimize, and transform your content automatically.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the package via Composer:

Publish Configuration

Optionally publish the configuration file to customize AI providers and prompts:

Publish Translations

To customize translations:

๐Ÿš€ Usage

Basic Setup

The plugin automatically registers itself globally with all Rich Editor instances. No additional configuration required!

Available Toolbar Buttons

Keyboard Shortcuts

Shortcut Action
Ctrl + Shift + L (Windows/Linux)
Cmd + Shift + L (Mac)
Toggle HTML source mode
Esc Exit source mode

๐Ÿค– AI-Powered HTML Transformation

How It Works

  1. Click the Transform HTML button in the Rich Editor toolbar
  2. Select a transformation prompt from the dropdown
  3. Preview and edit the HTML content
  4. Click Transform HTML to apply AI optimization
  5. Review the transformed content and insert it back into the editor

Default Configuration

The plugin comes with a preconfigured AI setup:

Custom AI Prompts

Add your own transformation prompts in the configuration file:

Supported AI Providers

Configure your preferred AI provider via the Prism PHP package:

Setup AI Provider

  1. Install Prism PHP (already included as dependency)
  2. Configure your API keys in .env:

  3. Update the provider in config:

โš™๏ธ Configuration

Full Configuration Example

System Prompt Customization

The system-prompt defines the AI's behavior and guidelines. Customize it to match your needs:

๐ŸŒ Internationalization

The plugin includes translations for:

Available Translation Keys

Adding Custom Languages

Publish the translations and add your language:

Then create a new language file in resources/lang/vendor/filament-rich-editor-source-ai/{locale}/editor.php.

๐ŸŽจ Customization

Javascript assets will be published to public/js/naturalgroove/laravel-filament-rich-editor-source-ai/.

Css assets will be published to public/css/naturalgroove/laravel-filament-rich-editor-source-ai/.

๐Ÿ’ก Use Cases

1. Clean Pasted Content

Users often paste content from Word, Google Docs, or websites that contains messy HTML with inline styles. Use the AI transformation to clean it up automatically.

2. Optimize for Tailwind CSS

When using Tailwind's Typography plugin (@tailwindcss/typography), the AI can remove unnecessary classes and optimize HTML structure.

3. Ensure Accessibility

Transform existing content to meet WCAG guidelines, adding proper semantic HTML, ARIA labels, and improving overall accessibility.

4. Convert Legacy HTML

Modernize old HTML with deprecated tags and attributes into clean, semantic HTML5.

5. Standardize Content

Ensure consistent HTML structure across your application by transforming content to follow your standards.

๐Ÿงช Testing

Run the test suite:

Run static analysis:

Format code:

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ”’ Security

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

๐Ÿ‘จโ€๐Ÿ’ป Credits

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.

๐Ÿ™ Acknowledgments

This package uses:


Made with โค๏ธ by NaturalGroove


All versions of laravel-filament-rich-editor-source-ai with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0|^5.0
filament/forms Version ^4.0|^5.0
prism-php/prism Version ^0.97.0 || ^0.98.0 || ^0.99.0
spatie/laravel-package-tools Version ^1.15.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package naturalgroove/laravel-filament-rich-editor-source-ai contains the following files

Loading the files please wait ...