Download the PHP package elektrorl/metatag_ai_generate without Composer

On this page you can find all versions of the php package elektrorl/metatag_ai_generate. 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 metatag_ai_generate

# Metatag AI Generate ### AI-Powered SEO Meta Description Generator for Drupal *Automatically generate optimized meta descriptions using cutting-edge AI models directly from your Drupal content editor* [![Drupal](https://img.shields.io/badge/Drupal-10.2%2B%20%7C%2011-0678BE?style=for-the-badge&logo=drupal&logoColor=white)](https://www.drupal.org) [![PHP](https://img.shields.io/badge/PHP-8.1%2B-777BB4?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net) [![License](https://img.shields.io/badge/License-GPL--2.0+-green?style=for-the-badge)](LICENSE) [Features](#features) • [Installation](#installation) • [Configuration](#configuration) • [Usage](#usage) • [Troubleshooting](#troubleshooting) • [Multilingual Support](#multilingual-support) ---

Why Metatag AI Generate?

Writing compelling, SEO-optimized meta descriptions is time-consuming and requires expertise. Metatag AI Generate eliminates this burden by intelligently analyzing your content and generating professional meta descriptions in seconds.

There is another similar module called Metatag AI.

Metatag AI Generate:

Choose this module if you want:

Choose Metatag AI if you want:

Key Features


Installation

Step 1: Install Required Modules

  1. Via Composer (recommended):

  2. Or download manually from Drupal.org

Step 2: Enable the Modules

  1. Go to Extend (/admin/modules)
  2. Search for "Metatag AI Generate"
  3. Check the box and click Install

Or use command line:

Step 3: Install an AI Provider & Get API Key

Choose one provider and install its Drupal module:

  1. Install the provider module via Composer:

  2. Get an API key from your chosen provider:

Configuration

Configure API Key

  1. Go to Configuration → System → Keys (/admin/config/system/keys)
  2. Click + Add key
  3. Fill in:
    • Key name: anthropic_api_key (or your provider name)
    • Key type: Authentication
    • Key provider: Configuration
    • Key value: Paste your API key
  4. Click Save

Configure Metatag AI Generate

Navigate to: Configuration → Search and metadata → Metatag AI Generate (/admin/config/search/metatag-ai-generate)

Setting What to do
Enable Module Check to activate AI generation
AI Provider Select your provider (Anthropic, Mistral, OpenRouter, or OpenAI)
API Key Select the key you created above
Persona Define your writing style, e.g.:
• "a professional content writer specializing in SEO"
• "a creative copywriter focused on user engagement"
• "an e-commerce content specialist"
Enabled Content Types Check content types where you want AI generation (e.g., Article, Page)

Click Save configuration


Usage

Generate Meta Descriptions

  1. Create or edit content (e.g., an Article or Page)
  2. Scroll to the Metatag section (usually in the right sidebar)
  3. Click the "Generate with AI" button
  4. Wait 1-2 seconds while AI analyzes your content
  5. Review the generated description in the Description field
  6. Edit if needed, then click Save

That's it! Your content now has an SEO-optimized meta description.

How It Works

Content Extraction:

AI Generation:

Best Practice (2026):


Troubleshooting

"Generate with AI" button doesn't appear

Solution:

  1. Go to Configuration → Search and metadata → Metatag AI Generate
  2. Check that the module is enabled (checkbox at top)
  3. Check that your content type is selected in Enabled Content Types
  4. Clear Drupal cache: Configuration → Development → Performance → Clear all caches

"No AI provider configured" error

Solution:

  1. Go to Configuration → Search and metadata → Metatag AI Generate
  2. Make sure you selected an AI Provider from the dropdown
  3. Make sure you selected an API Key (must be created first in Keys module)
  4. Click Save configuration

AI generation fails or returns an error

Check your API key:

  1. Go to Configuration → System → Keys
  2. Edit your API key
  3. Make sure the key value is correct (no extra spaces)

Check your provider's dashboard:

Still not working?


Multilingual Support

Metatag AI Generate is available in 6 languages with complete professional translations:

Language Code Status
🇬🇧 English en ✅ Native
🇫🇷 Français fr ✅ Complete
🇪🇸 Español es ✅ Complete
🇩🇪 Deutsch de ✅ Complete
🇨🇳 简体中文 zh-hans ✅ Complete
🇯🇵 日本語 ja ✅ Complete

License

This module is licensed under the GNU General Public License v2.0 or later.


### If you find this module helpful, please star it on GitHub! [Report a Bug](https://github.com/elektrorl/metatag_ai_generate/issues) • [Request Feature](https://github.com/elektrorl/metatag_ai_generate/issues) • [Discussions](https://github.com/elektrorl/metatag_ai_generate/discussions)

All versions of metatag_ai_generate with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
drupal/core Version ^10.2 || ^11
drupal/metatag Version ^2.1
drupal/ai Version ^1.1
drupal/key Version ^1.17
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 elektrorl/metatag_ai_generate contains the following files

Loading the files please wait ...