Download the PHP package el-schneider/statamic-magic-actions without Composer

On this page you can find all versions of the php package el-schneider/statamic-magic-actions. 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 statamic-magic-actions

AI-powered field actions for Statamic. Generate alt text, extract tags, create teasers, transcribe audio, and more — directly from the control panel.

Features

Installation

Configuration

Add your API keys to .env:

Only add keys for the providers you plan to use.

Optionally publish the config:

Built-in Actions

Propose Title

Generate SEO-friendly titles from entry content.

Extract Meta Description

Generate SEO-optimized descriptions (max 160 characters) from entry content.

Extract Tags

Auto-generate taxonomy tags from entry content.

Alt Text

Create accessible image descriptions using vision models.

Action Reference

Action Description Fieldtypes Source Model
Propose Title SEO-friendly titles from content Text Entry content Text
Extract Meta Description SEO descriptions (max 160 chars) Textarea Entry content Text
Extract Tags Auto-generate taxonomy tags Terms Entry content Text
Alt Text Accessible image descriptions Text Asset image Vision
Image Caption Narrative captions for images Text, Textarea, Bard Asset image Vision
Create Teaser Preview text (~300 chars) from content Textarea, Bard Entry content Text
Transcribe Audio Audio-to-text via Whisper Textarea, Bard Audio asset Audio
Assign Tags Match content to existing taxonomy terms Terms Entry content + taxonomy Text
Extract Asset Tags Generate tags from image analysis Terms Asset image Vision

Usage

1. Configure a field in your blueprint

In the Statamic control panel, edit any supported fieldtype and enable Magic Actions:

2. Click the magic button

A wand icon appears on configured fields. Click it to run the action.

3. Bulk actions

Select entries or assets in listing views — bulk action buttons appear automatically for all actions that declare supportsBulk().

4. CLI batch processing

5. Queue processing

For best performance, configure a queue worker:

Without a queue worker, jobs run synchronously which may cause timeouts for longer operations.

Custom Actions

Create your own magic actions by extending BaseMagicAction:

Register in the config:

Action Types

Type Use Case Model Examples
text Text-to-text processing gpt-4.1, claude-sonnet-4-5, gemini-2.0-flash, mistral-large-latest
vision Image analysis gpt-4.1, claude-sonnet-4-5, gemini-2.0-flash
audio Transcription whisper-1, voxtral-mini-latest

Prompts with Blade

Prompts support Blade syntax with variables:

Language Support

Most text actions auto-detect and match the input language. The system prompts instruct the AI to respond in the same language as the source content.

Requirements

License

MIT


All versions of statamic-magic-actions with dependencies

PHP Build Version
Package Version
Requires statamic/cms Version ^5.0
guzzlehttp/guzzle Version ^7.8
symfony/yaml Version ^7.0
prism-php/prism Version ^0.99.0 || ^0.100
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 el-schneider/statamic-magic-actions contains the following files

Loading the files please wait ...