Download the PHP package fei/translate-package without Composer
On this page you can find all versions of the php package fei/translate-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fei/translate-package
More information about fei/translate-package
Files in fei/translate-package
Package translate-package
Short Description Translate client package integration for Objective PHP applications
License proprietary
Informations about the package translate-package
Translate Package
This package provide Translate Client integration for Objective PHP applications.
Installation
Translate Package needs PHP 7.0 or up to run correctly.
You will have to integrate it to your Objective PHP project with composer require fei/translate-package
.
Integration
As shown below, the Translate Package must be plugged in the application initialization method.
The Translate Package create a Translate Client service that will be consumed by the application's middlewares.
Application configuration
Create a file in your configuration directory and put your Translate configuration as below:
In the previous example you need to set this configuration:
base_url
: represent the URL where the API can be contacted in order to send the translationstransport
: represent the translations transport typetranslate_directory
: represent the path to the directory to store the translationstranslate_config
: represent the translate client configuration (Cf.translate-client
documentation)translate_namespace
: represent the default namespace where to search the translationstranslate_lang
: represent the default language in which we want the translations
Note that if you want your application to use local translations and not subscribe to a Translate server you can configure your application like this:
Please check out translate-client
documentation for more information about how to use this client.
All versions of translate-package with dependencies
objective-php/application Version ^1.0
fei/translate-client Version ^1.4
fei/connect-client Version ^3.1
objective-php/cli Version ^1.2