Download the PHP package soderlind/ai-alt-text without Composer

On this page you can find all versions of the php package soderlind/ai-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 ai-alt-text

AI Alt Text

Generate alt text for images using AI. Supports multiple AI providers including OpenAI, Claude, Gemini, Ollama, Azure OpenAI, and Grok.

Features

Requirements

Installation

Configuration

Via Admin Settings

Navigate to Settings → AI Alt Text and configure:

  1. Select your AI provider
  2. Enter your API key
  3. Optionally customize the model and other settings

Via Constants (wp-config.php)

Via Environment Variables

Usage

Bulk Update

  1. Go to Media → Library (list view)
  2. Select images you want to update
  3. Choose "Generate AI Alt Text" from the bulk actions dropdown
  4. Click "Apply"

From the Block Editor

  1. Add or select an image block
  2. In the sidebar, find the "AI Alt Text" panel
  3. Click "Generate Alt Text with AI"

AI Providers

Provider Model Notes
OpenAI gpt-4o Requires API key from OpenAI
Anthropic claude-sonnet-4-20250514 Requires API key from Anthropic
Google Gemini gemini-2.0-flash Requires API key from Google AI Studio
Azure OpenAI gpt-4o Requires Azure subscription and deployment
Ollama llava Free, runs locally. Install from ollama.ai
Grok grok-2-vision-1212 Requires API key from xAI

For detailed configuration instructions, see AI Provider Documentation.

Hooks & Filters

Modify Generated Alt Text

Customize the AI Prompt

Skip Auto-generation for Specific Images

Translations

The plugin is translation-ready. Translation files are located in the languages/ directory.

Creating a Translation

  1. Copy languages/ai-alt-text.pot to languages/ai-alt-text-{locale}.po
    • Example: ai-alt-text-nb_NO.po for Norwegian Bokmål
    • Example: ai-alt-text-de_DE.po for German
  2. Translate the strings using Poedit or similar tool
  3. Save to generate the .mo file
  4. For JavaScript translations, run:

Available Locales

Contributions welcome! Submit your translation via a pull request.

Development

Building Assets

Running Tests

Code Standards

License

GPL v2 or later. See LICENSE for details.

Credits

Developed by Per Soderlind.

Support


All versions of ai-alt-text with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
yahnis-elsts/plugin-update-checker Version ^5.6
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 soderlind/ai-alt-text contains the following files

Loading the files please wait ...