Download the PHP package translators-hive/laravel-autotranslate without Composer

On this page you can find all versions of the php package translators-hive/laravel-autotranslate. 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-autotranslate

Translators Hive Laravel Autotranslate

Translators Hive Laravel Autotranslate is a small tool for Laravel that gives you the ability to extract and auto translate untranslated string from your project files with one command.

Support

[email protected]

Installation

You can install the package via composer:

This package makes use of Laravels package auto-discovery mechanism, which means if you don't install dev dependencies in production, it also won't be loaded.

You can publish the config file with:

Usage

Configure translators-hive.com api credentials in your .env file

To collect, extract and auto translate all the strings you need to run:

This command will create (if don't exist) es.json, bg.json, de.json and fr.json files inside the resources/lang directory. If you have short keys enabled and used in your files (e.g. auth.failed) the command will create folders es, bg, de and fr inside resources/lang directory and PHP files inside by the short key's prefix (e.g. auth.failed).

You can also run the artisan command without the country code arguments.

In this case translation strings will be generated for the language specified in app.locale config.

Note: Strings you have already translated will not be overwritten.

Key Sorting

By default, the strings generated inside those JSON files will be sorted alphabetically by their keys. If you want to turn off this feature just set sort => false in the config file.

Searching

The way the strings are being collected and extracted is simple.

Searching is inside the directories defined in search.dirs config, using patterns defined in search.patterns, and finally is looked to collect strings which are the first argument of the functions defined in search.functions.

You can change any of these values inside the config file to suit you own needs.

Translating

Changelog

Please see CHANGELOG for more information on what has changed recently.


All versions of laravel-autotranslate with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
symfony/finder Version ^3.2|^4|^5|^6
illuminate/config Version ^5.4|^6|^7|^8|^9|^10
illuminate/console Version ^5.4|^6|^7|^8|^9|^10
illuminate/support Version ^5.4|^6|^7|^8|^9|^10
illuminate/filesystem Version ^5.4|^6|^7|^8|^9|^10
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 translators-hive/laravel-autotranslate contains the following files

Loading the files please wait ....