Download the PHP package itsmattburgess/laravel-translate without Composer

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

Laravel Translate

Build Code Quality Coverage

Easily translate your laravel application using cloud translation APIs. This package finds all of your __() and trans() methods in your app/ and resources/ directories and translates each string using the API. Online translation APIs aren't perfect however, so its recommended that this package is used to give you a good starting point. Packages such as barryvdh/laravel-translation-manager and joedixon/laravel-translation can then be used to fine-tune your translations.

Installing

Installation is achieved using composer

Configuration

You can configure how this package is implemented using the config file in config/translate.php. You first need to publish this config file using the command below:

In this config file, you can specify the methods that contain your translation strings, the path where your methods should be discovered in, and which languages you want to translate into.

The package currently only supports the Google Translate API.

To use the Google Translate API you need to set your API key. You can obtain an API key from your Google Cloud Console. Once generated, add your key to your .env file.

Usage

Once you have set your API key and set the languages you want to translate into, you're ready start processing. Run the following command to start processing. It will detect your translation methods and create the language files in resources/lang/. If you already have these files defined, it will override any matching keys with an updated translation.

Pricing warning

Online translation providers, such as Google, charge for usage of their APIs. Check their pricing carefully, you are responsible for any charges incurred.

Contributing

Contributions are welcome. If you've spotted a bug, would like to add a new feature or implement a new service, please submit a pull request with associated test coverage. I'll review any pull requests as quickly as I can.


All versions of laravel-translate with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
ext-json Version *
google/cloud-translate Version ^1.2
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 itsmattburgess/laravel-translate contains the following files

Loading the files please wait ....