PHP code example of glue-agency / craft-image-captions
1. Go to this page and download the library: Download glue-agency/craft-image-captions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
glue-agency / craft-image-captions example snippets
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;
});