Download the PHP package foun10/deepl without Composer

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

foun10 DeepL

CI b-7.x

Translates shop content into additional languages at runtime via the DeepL API, without maintaining a second set of shop languages.

The shop keeps the languages it always had. Everything else — product texts, categories, manufacturers, content pages, attributes, interface strings — is translated on the fly when a visitor asks for a language the shop does not maintain, and cached so each text is paid for once.

Compatibility

Module version Branch OXID eShop Template engine
7.x b-7.x 7.0 – 7.5 Twig
6.x b-6.x 6.2 – 6.5 Smarty

Composer resolves the right line for your shop automatically.

Tested combinations

Every row below is installed from scratch and exercised by the full test suite on every push. This is not a statement of intent — if a combination is listed here, CI proves it.

OXID eShop PHP
7.0 8.0, 8.1
7.1 8.1, 8.2
7.2 8.2, 8.3
7.3 8.2, 8.3, 8.4
7.4 8.2, 8.3, 8.4
7.5 8.3, 8.4, 8.5

The table and the CI matrix are compared by a test, so they cannot drift apart unnoticed.

Features

Installation

Configuration

Both settings live in the OXID backend under Extensions → Modules → foun10 DeepL → Settings:

Setting Meaning
foun10DeepLApiKey Your DeepL API key. Without it the module stays inert.
foun10DeepLSourceLanguage Abbreviation of the shop language translations are generated from, e.g. de or en. Must be a language your shop has configured; an unknown or empty value falls back to en.
foun10DeepLLanguagesOnDemand Languages offered on top of the ones the shop maintains, as abbreviation => display name pairs. Clearing the list switches the extra languages off without deactivating the module.
foun10DeepLGlossaryId Optional. A DeepL multilingual glossary; applied automatically for the language pairs it covers.

Set the source language to whichever language your shop content is actually written in. Every on-demand translation starts from it, so pointing it at a language you do not maintain produces translations of empty or stale text.

There is also a development switch, blDeepLTestMode, set in config.local.inc.php rather than the backend. With it on, the module never calls the API and never writes to the cache — useful for local work and for test suites that must not spend money.

Honest opinion

We wrote this module for our own customer projects, so here is where we would reach for it and where we would not.

✅ Use it when

❌ Do not use it when

Theme integration

The module adds its languages to two places in the storefront: the hreflang link list in the page head, and the language switcher in the header. Both hook into blocks the shipped theme provides - head_link_hreflang and dd_layout_page_header_icon_menu_languages_list. A custom theme that renames or drops those blocks needs its own equivalents; the module's versions are small and can be copied as a starting point.

The switcher is only rendered by the theme when the shop has more than one language of its own, so a single-language shop shows no switcher for the module to extend.

Using the translation from another module

The translation service is a plain class in the container, so any other module can use it - an export module producing a feed in a language the shop does not maintain, for instance:

translateText() is the same entry point the module uses for the storefront, so an export shares the storefront's cache: text already translated for a visitor costs nothing again, and text translated for the feed is there when a visitor asks for it. It also inherits the rest of the behaviour - a configured glossary is applied for the language pair, text with nothing translatable in it (numbers, filenames) is returned unchanged, and blDeepLTestMode makes every call a no-op that returns the input, which is what you want in a test suite.

Two things to know before running it over a large catalogue:

Known limitations

Development & Testing

The integration suite bootstraps a real shop. Point it at yours:

There is deliberately no composer.lock in this repository: the dependency tree is resolved per PHP version, and a lock file would tie the whole supported range to one of them. Use composer update, not composer install.

Changelog

See CHANGELOG.md.

License

GPL-3.0-only. You may use this module commercially, including in customer projects. If you redistribute it, or a derivative of it, that has to happen under the GPL as well.


All versions of deepl with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
deeplcom/deepl-php Version ^1.18
php-http/curl-client Version ^2.1
http-interop/http-factory-guzzle Version ^1.0
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 foun10/deepl contains the following files

Loading the files please wait ...