Download the PHP package victormgomes/auto-translate without Composer
On this page you can find all versions of the php package victormgomes/auto-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download victormgomes/auto-translate
More information about victormgomes/auto-translate
Files in victormgomes/auto-translate
Package auto-translate
Short Description Automatic translation for translatable attributes in Eloquent models
License MIT
Homepage https://github.com/victormgomes/auto-translate
Informations about the package auto-translate
Auto Translate
Automatic translation for translatable attributes in Eloquent models
Introduction
Auto Translate is a powerful addon for spatie/laravel-translatable that automates the translation of your model attributes. It listens for model saving events and automatically translates your content into multiple languages using configured translation providers.
Why use this package?
- Automation: Save time by letting the package handle translations automatically upon saving models.
- Seamless Integration: Built specifically to work with the industry-standard
spatie/laravel-translatable. - Declarative Configuration: Use PHP attributes to define which fields should be translated, keeping your models clean and readable.
- Scalable: Easily manage multi-language content across your entire application without manual intervention.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by sponsoring us on GitHub.
Installation
You can install the package via composer:
You can publish and run the migrations with:
Usage
Simply use the AutoTranslatable trait and the #[AutoTranslate] attribute on your models. Specify which fields should be automatically translated.
When you save the Category model, the name attribute will be automatically translated into all supported locales defined in your configuration.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Victor M. Gomes
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of auto-translate with dependencies
spatie/laravel-package-tools Version ^1.16
laravel/ai Version ^0.7
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
illuminate/database Version ^11.0||^12.0||^13.0
illuminate/http Version ^11.0||^12.0||^13.0
illuminate/bus Version ^11.0||^12.0||^13.0
illuminate/queue Version ^11.0||^12.0||^13.0
illuminate/cache Version ^11.0||^12.0||^13.0