Download the PHP package el-schneider/statamic-auto-alt-text without Composer

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

Statamic Auto Alt Text

Automatically generate descriptive alt text for images in Statamic v5 using AI services (Moondream or OpenAI GPT-4 Vision)

Features

Installation

Publish the configuration file:

Configuration

By default, the addon uses the moondream service with the cloud API. Set your API key in your .env file:

Refer to the published configuration file (config/statamic/auto-alt-text.php) for additional options, including switching between services.

Non-English Captions

Moondream

Currently, Moondream only supports English language captions. If you need captions in other languages, consider using the OpenAI service instead.

OpenAI

OpenAI supports multiple languages. You can customize the prompt to generate captions in your preferred language by setting the OPENAI_PROMPT environment variable:

Usage

Automatic Generation

The addon listens for configured Statamic events (default: AssetUploaded and AssetSaving). When an asset without alt text is detected, a background job is dispatched to generate it automatically using your configured AI service.

Important: This feature requires Laravel's queue system with an asynchronous queue driver (e.g., database, redis, sqs) and a running queue worker (php artisan queue:work). The default sync driver won't work for background processing.

Optionally customize the queue configuration:

Optional: Defaults to your application's default queue connection

Optional: Defaults to the default queue name for the connection

Manual Generation

For existing assets or specific workflows:

  1. Field Action: Edit an asset, find the alt text field, and click the "Generate Alt Text" action
  2. Statamic Action: In an Asset container, use the "Generate Alt Text" action from the contextual menu
  3. CLI Command: Process assets in bulk with:

See php please auto-alt:generate --help for options to specify containers, assets, and overwriting behavior

Using Local Moondream

For privacy or compliance reasons, you can run Moondream locally:

  1. Set up Moondream: Follow the Quickstart guide to set up a local Moondream server
  2. Configure the addon: Update your .env file:

    Set your local server endpoint (default points to cloud API)

You may not need an API key for local setups (remove or leave empty if not required)


All versions of statamic-auto-alt-text with dependencies

PHP Build Version
Package Version
Requires statamic/cms Version ^5.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 el-schneider/statamic-auto-alt-text contains the following files

Loading the files please wait ....