Download the PHP package gwhthompson/filament-ai-forms without Composer

On this page you can find all versions of the php package gwhthompson/filament-ai-forms. 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 filament-ai-forms

Filament AI Forms

Latest Version on Packagist codecov PHPStan License

AI-powered form generation for Filament, built on the Laravel AI SDK.

Describe what each field represents with aiSchema(). An AI agent fills them in. Your field types and validation rules act as constraints, so you always get valid data back.

Requirements

Installation

Publish the config file:

Register the plugin in your panel provider:

Quick Start

Mark fields with aiSchema() and add AiGenerateAction to your page:

The action opens a wizard: select fields, generate, review, then accept or reject each value.

Configuration

Env var Purpose
AI_FORMS_GENERATION_AGENT Agent class for bulk generation
AI_FORMS_CHAT_AGENT Agent class for chat refinement
AI_FORMS_LOGGING Enable/disable generation logging (default: true)

You can also set agents on the plugin directly:

aiSchema Parameters

Parameter Type Default Purpose
enabled bool true Enable/disable generation for this field
description string null What this field represents
prompt string null Instructions for the agent
required bool true Whether the agent must fill this field
examples array [] Example values to guide output
pattern string null Regex pattern constraint

AiGenerateAction

Bulk-generate multiple fields at once. Add it as a header action or form action.

Method Purpose
agent(string\|Closure) Custom agent class
systemPrompt(string\|Closure) System instructions
contextProvider(Closure) Pass context data (URLs, etc.)
beforeGeneration(Closure) Pre-generation hook
afterGeneration(Closure) Post-generation hook
logEnabled(bool) Enable/disable logging
tools(array) Pass tools to default agent (e.g., WebSearch)
logPath(string) Custom log path

AiChatAction

Refine a single field through a chat interface. Add it as a suffix action on any field.

Method Purpose
agent(string\|Closure) Custom agent class
systemPrompt(string\|Closure) System instructions
initialPrompt(string\|Closure) Pre-fill the chat input
contextPrompt(string\|Closure) Additional context

Custom Agents

Agents use the Laravel AI SDK. Configure model, provider, and temperature with PHP attributes.

Key interfaces:

Agent resolution order: action-level ->agent() > plugin-level ->agent() > config value > built-in default.

Testing

The Laravel AI SDK provides test helpers to fake agent responses:

Use Agent::preventStrayPrompts() to catch unexpected agent calls in your test suite.

How It Works

The package converts your Filament form schema into a JSON schema that the agent follows. Your Laravel validation rules (required, max length, enum values) become constraints in that schema. The agent returns structured data matching your field types, and you review each value before it touches the form.

Custom Themes

If you have a custom Filament theme, add the package views to your theme's @source directive:

The chat interface uses named CSS classes (fi-ai-chat-*) for easy customisation:

Credits

License

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


All versions of filament-ai-forms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^4.0|^5.0
laravel/ai Version ^0.2
spatie/laravel-data Version ^4.0
spatie/laravel-package-tools Version ^1.16
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 gwhthompson/filament-ai-forms contains the following files

Loading the files please wait ...