glue-agency/craft-image-captions

There is no license information available for the latest version (4.0.2) of this package.

Automatically generate image captions

4.0.2 2023-06-29 14:37 UTC

This package is auto-updated.

Last update: 2024-10-29 17:27:34 UTC


README

Automatically generate image captions using multiple service providers on a per volume basis.

Requirements

This plugin requires Craft CMS 4.4.0 or later, and PHP 8.1 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Image Captions”. Then click on the “Install” button in its modal window.

With Composer

Open your terminal and run the following commands

# Require the plugin through composer
composer require glue-agency/craft-image-captions

# Install the plugin
php craft plugin/install image-captions

Integrations

Provided out of the box

Add a Custom Integration

Create your custom Integration by extending the GlueAgency\ImageCaption\integrations\AbstractIntegration class and impelmenting the GlueAgency\ImageCaption\integrations\IntegrationInterface interface.

Hook the register event.

use GlueAgency\ImageCaption\services\IntegrationService;
use GlueAgency\ImageCaption\events\integrations\RegisterIntegrationsEvent;

Event::on(IntegrationService::class, IntegrationService::EVENT_REGISTER, function(RegisterIntegrationsEvent $event) {
    $event->integrations['your-custom-integration-name'] = YourCustomIntegration::class;
});