Download the PHP package ferdiunal/laravel-translator without Composer
On this page you can find all versions of the php package ferdiunal/laravel-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ferdiunal/laravel-translator
More information about ferdiunal/laravel-translator
Files in ferdiunal/laravel-translator
Package laravel-translator
Short Description This package allows you to use freely available online translation tools in your project.
License MIT
Homepage https://github.com/ferdiunal/laravel-translator
Informations about the package laravel-translator
Laravel Translator
A powerful and flexible translation package for Laravel applications that supports multiple translation services including OpenAI, DeepL, Google Translate, and NLPCloud.
Installation
Configuration
First, publish the configuration file:
This will create a config/translator.php
file in your app that you can modify to set your configuration. You can configure the following settings:
Add the following environment variables to your .env
file based on the services you want to use:
Available Translation Services
Google Translate
To use Google Translate, install the required package:
DeepL Translate
To use DeepL Translate, install the required package and set up your API key:
OpenAI Translate
To use OpenAI's translation capabilities, install the official PHP package:
NLPCloud Translate
To use NLPCloud's translation service, install their client package:
Usage
Basic Usage
Working with Laravel Collections
Blade Integration
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-translator with dependencies
deeplcom/deepl-php Version ^1.9
illuminate/contracts Version ^10.0||^11.0||^12.0
openai-php/client Version ^0.10.3
spatie/laravel-package-tools Version ^1.16
stichoza/google-translate-php Version ^5.2