Download the PHP package robole/sulu-ai-translator-bundle without Composer

On this page you can find all versions of the php package robole/sulu-ai-translator-bundle. 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 sulu-ai-translator-bundle

AITranslatorBundle

Sulu bundle that integrates DeepL API for bulk and single translations of content fields.

Demonstration of content field translation

AITranslatorBundle features:

Installation

This bundle requires PHP 8.2. Make sure to have installed Node 18 (or Node 14 for Sulu versions <2.6.0) for building the Sulu administration UI.

  1. Open a command console, enter your project directory and run:

If you're not using Symfony Flex, you'll also need to add the bundle in your config/bundles.php file:

  1. Register the new routes by adding the following to your routes_admin.yaml:

  2. Add the file config/packages/sulu_ai_translator.yaml with the following configuration:

Via locale_mapping you can map a locale key from your webspace to the according official DeepL target language. Use value null for languages that should not be translatable.

  1. Reference the frontend code by adding the following to your assets/admin/package.json:

  2. Import the frontend code by adding the following to your assets/admin/app.js:

  3. Install all npm dependencies and build the admin UI (see all options):

  4. Add your Deepl API Key to the .env file:

  5. Grant permissions in Sulu backend to access "DeepL Usage Statistics" view.

Limitations

Local development

  1. Add to repositories section of composer.json:

  2. Install bundle:

composer require robole/sulu-ai-translator-bundle:@dev

Troubleshooting

If a translation request returns the input text, it is very likely that the language key(s) defined in your locale_mapping bundle configuration are not supported by DeepL. This will be indicated in the response object.

Ideas for next versions

Disclaimer

This bundle uses the DeepL API to provide translation services. This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with DeepL SE or any of its subsidiaries or affiliates. The use of the DeepL API in this bundle is purely for functionality purposes and does not imply any relationship with the DeepL company.

DeepL is a registered trademark of DeepL SE.


All versions of sulu-ai-translator-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sulu/sulu Version ^2.5
symfony/config Version ^6.2
symfony/dependency-injection Version ^6.2
symfony/framework-bundle Version ^6.2
symfony/http-foundation Version ^6.2
symfony/http-kernel Version ^6.2
symfony/intl Version ^6.2
symfony/translation Version ^6.2
symfony/security-core Version ^6.3
deeplcom/deepl-php Version ^1.7
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 robole/sulu-ai-translator-bundle contains the following files

Loading the files please wait ....