Download the PHP package reliqarts/laravel-auto-translator without Composer

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

Laravel Automatic Translator, for Laravel 10+

test Codecov Latest Stable Version License

This package will scan your application, locate all [translation string keys](https://laravel.com/docs/10.x/localization#using-translation-strings-as-keys) throughout and generate translations based on your configuration. ## Features - Simple, easy to schedule artisan command to generate all translations - Automatic language file generation ([json](https://laravel.com/docs/10.x/localization#using-translation-strings-as-keys)) - Easy to configure, with support for custom translator implementation ## Installation Install via composer: ## Configuration You may publish the configuration file and customize as you wish. Each built-in translator implementation has its own set of config options. All configuration options are explained in the [configuration file](https://github.com/reliqarts/laravel-auto-translator/blob/main/config/config.php). ### Translator The `auto_translate_via` key allows you to specify which translator should be used for automatic translations. By default, this is set to Google's simple translator. Any service implementing the `\ReliqArts\AutoTranslator\Contract\Translator` interface may be used here. #### Built-in Implementations | Implementation | Paid | Documentation | Available languages | |------------------------------------------------------------------------|------|----------------------------------------|---------------------| | \ReliqArts\AutoTranslator\Service\Translator\SimpleGoogleApiTranslator | No | N/A | 100+ | | \ReliqArts\AutoTranslator\Service\Translator\DeepLTranslator | Yes | [Docs](https://www.deepl.com/docs-api) | 30+ | > [!IMPORTANT] > For production use cases please consider using a paid translator service. > Do not depend on the free Google HTTP implementation shipped with this package as it may > break at any time. See original disclaimer on [google-translate-php](https://github.com/Stichoza/google-translate-php). ## Usage ### Artisan Command The package provides an easy-to-use command which you may run on-demand or on a schedule. You may pass one or more language codes (comma separated) in order to specify which languages should be translated to. e.g. An optional `replace-existing` flag (`r`) allows you to override existing translations. e.g. ### Language Switcher Endpoint and Middleware The package provides a route/middleware combination which allows users to switch the language of your application. #### Usage: 1. Add the `\ReliqArts\AutoTranslator\Http\Middleware\LanguageDetector` middleware to the web route group in your `App\Http\Kernel` class. 2. Switch the language by sending a post request to the `switch-language` route. _(name and endpoint changeable in config file)_ You may use a select box, set of flags, etc. to make calls to this endpoint. UI choice is totally yours :smiley: ## Credits & Inspiration This package was inspired by [laravel-auto-translate](https://github.com/ben182/laravel-auto-translate) and is made possible by the following: - [laravel-translatable-string-exporter](https://github.com/kkomelin/laravel-translatable-string-exporter) by [kkomelin](https://github.com/kkomelin) - [google-translate-php](https://github.com/Stichoza/google-translate-php) by [stichoza](https://github.com/Stichoza) - [contributors](https://github.com/reliqarts/laravel-auto-translator/graphs/contributors) --- All done! :beers:

All versions of laravel-auto-translator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
deeplcom/deepl-php Version ^1.5
illuminate/support Version ^8.0|^9.0|^10|^11.0
kkomelin/laravel-translatable-string-exporter Version ^1.21
reliqarts/laravel-common Version ^7.0|^8.0
stichoza/google-translate-php Version ^5.1
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 reliqarts/laravel-auto-translator contains the following files

Loading the files please wait ....