Download the PHP package ali-translator/translator without Composer

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

Translator

The Translation component provides tools to internationalize your application.

Installation

Simplified translator

Example of init one direction translator (one original and one translation languages):

Complex translator

If you need few original and translation languages, this way for you:

Parameters resolving

Catchers of missing translations

Packet allow set catchers of phrases without translation, which will run after tranlsate method failing

Phrase decorators

If you need decorate original-phrase or translated-phrase before output - this section for you.
Example, of existed decorator, which replaces numbers to "0" before saving originals, and restoring correct number after translate.

Originals grouping

Optionality, you can add group to the originals. This can be useful for cases, when many different processes adding originals, and then when one of these processes removes its dependencies form them, to deciding whether to remove the original from the translator - use the groups. If original now does not have any group - remove them.

Available sources

Languages

For convenience, a couple of classes are integrated into this package to help with languages.
LanguageInterface - Has getTitle(), getIsoCode() and getAlias()methods
LanguageRepositoryInterface - Has save(LanguageInterface $language, $isActive), find($alias), findByIsoCode($isoCode), getAll($onlyActive) methods.
And realizations for repository interface: ArrayLanguageRepository(ArrayLanguageRepositoryFactory) and MySqlLanguageRepository

Suggest packets

Tests

In packet exist docker-compose file, with environment for testing.


All versions of translator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 ali-translator/translator contains the following files

Loading the files please wait ....