Download the PHP package digitalpulsebe/craft-deepl-translator without Composer

On this page you can find all versions of the php package digitalpulsebe/craft-deepl-translator. 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 craft-deepl-translator

Multi Translator

Translate your site content using Deepl, Google Translate or ChatGPT.

Requirements

This plugin requires Craft CMS 4 or Craft CMS 5.

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 “Multi Translator”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

when using DDEV:

Translation Services

For now, we support these API services:

OpenAI-compatible providers

The OpenAI API provider supports a configurable base URL and custom model name, allowing you to point it at any OpenAI-compatible endpoint.

Setting Description Default
API Base URL Base URL of the API endpoint https://api.openai.com/v1
API model Model dropdown, or select "Custom" to enter a free-text model identifier gpt-4o
Custom model name Free-text model identifier (shown when "Custom" is selected) —

Both the base URL and model fields support Craft environment variables (e.g. $OPENAI_BASE_URL).

Example: Infomaniak AI Service

In your .env:

In the plugin settings: set Base URL to $OPENAI_BASE_URL, API Key to $OPENAI_API_KEY, select Custom as the model and enter e.g. mistral3 or qwen3.

Roadmap

Please let us know which API's and features are desired for this plugin!

Plugin Settings

Configure options in the Craft control panel settings

Permissions

For non-admin users, enable permissions under the 'Multi Translator' section:

Supported field types

Usage

There are two ways to trigger a translation.

Translate one-by-one

  1. Navigate to the entry on the desired source site/language.
  2. Use the buttons in the sidebar and select the target language.

(you can reverse this flow by setting the default direction in the configuration)

Translate in bulk

  1. Navigate to overview of entries you want to get translated.
  2. Select the entries in the source language.
  3. Use the 'Translate to' dropdown in the actions bar and choose the target language
  4. A queue job will be started

Manage Glossaries

When using DeepL API, you can add a glossary for supported language pairs. When translating, the plugin will search a glossary for the appropriate source and target language. There can only be one glossary for each language pair.

DeepL style rules and custom instructions

When using the DeepL API, you can apply the style rules configured in your DeepL account. Style rules are created and edited in your DeepL account. On the Style Rules screen you can fetch them and enable one style rule per target language; when translating into that language, the plugin passes the style rule along.

You can also configure up to 10 free-text custom instructions (max 300 characters each) in the DeepL provider settings. They are applied when translating into the target languages supported by DeepL (German, English, Spanish, French, Italian, Japanese, Korean and Chinese).

Custom instructions require DeepL's next-generation language model. If the plugin is configured to use the classic model, translations using custom instructions are upgraded to the next-generation model automatically.

Extending with events

You can add your own logic by listening to these events:

The beforeElementTranslation event

Example:

The afterElementTranslation event

Example:

The beforeFieldTranslation event

Example:

The afterFieldTranslation event

Example:

Registering a custom API provider

The EVENT_REGISTER_API_PROVIDERS event on TranslateService lets you add your own translation provider without forking the plugin. This makes it possible to integrate services like Gemini, Claude, Azure AI, or any internal translator.

1. Create a provider class

Extend digitalpulsebe\craftmultitranslator\providers\Provider and implement the required methods:

Key points:

2. Create a settings template

The settings variable is your provider's own settings array.

3. Register the provider

Listen for EVENT_REGISTER_API_PROVIDERS in your plugin or module's init():

Once registered, the provider will appear in the API Provider dropdown in the plugin settings, and its settings template will be shown automatically when it is selected.


All versions of craft-deepl-translator with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^5.6
deeplcom/deepl-php Version ^1.20
google/cloud-translate Version ^1.12
ext-dom Version *
ext-libxml Version *
ext-json Version *
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 digitalpulsebe/craft-deepl-translator contains the following files

Loading the files please wait ...