Download the PHP package aar/laravel-auto-translator without Composer
On this page you can find all versions of the php package aar/laravel-auto-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aar/laravel-auto-translator
More information about aar/laravel-auto-translator
Files in aar/laravel-auto-translator
Package laravel-auto-translator
Short Description A comprehensive, high-performance translation management system for Laravel with AI translation, dashboard UI, and CLI tools.
License MIT
Informations about the package laravel-auto-translator
aar/laravel-auto-translator
A production-ready, high-performance translation management system for Laravel.
Handles 10,000+ translation keys with AI-powered translations, a modern dashboard, CLI tools, and full database storage.
✅ Ready for GitHub and Packagist —
composer require aar/laravel-auto-translator
Features
| Feature | Description |
|---|---|
| 🔍 High-Speed Scanner | Scans PHP, Blade, Vue, React, JS/TS with incremental file-hash caching |
| 🤖 AI Translation | LibreTranslate (default), DeepL, Google Translate, OpenAI |
| 🧠 Translation Memory | Never re-translates the same phrase twice |
| 🗑️ Dead Key Detection | Finds and removes orphaned translation keys |
| 🌐 Multi-Locale | Manage any number of locales dynamically via CLI |
| 🗄️ Database Storage | Fully indexed database tables with file sync |
| 🖥️ Dashboard UI | Inline editing, search, filter, bulk actions, progress bars |
| ⚡ CLI Commands | scan, auto, clean, export, import, status, lang |
| 📦 Export/Import | JSON, CSV, ZIP formats |
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
- Composer
Installation
Publish Configuration
Run Migrations
Configuration
The config file is at config/aar-translator.php after publishing.
Key Settings
AI Translation Setup
LibreTranslate (Free, Open-Source – Default)
Self-host for free: pip install libretranslate && libretranslate --host 0.0.0.0 --port 5000
DeepL
Google Translate
OpenAI (GPT-4o-mini or better)
CLI Commands
All commands use the aar: prefix.
Scan Project
Auto-Translate Missing Keys
Clean Dead Keys
Export Translations
Import Translations
Translation Status
Example output:
Manage Locales
Dashboard
Access the web dashboard at /admin/translations (configurable).
Dashboard Features
- Overview: Total keys, dead keys, missing translations, locale completion bars
- Keys List: Paginated table with search, group filter, missing-only filter
- Inline Editing: Click any translation to edit it directly in the browser
- Bulk Actions: Delete all dead keys, trigger scan, trigger auto-translate
- Export: Download JSON, CSV, or ZIP directly from the browser
- Import: Upload a JSON or CSV file to import translations
Securing the Dashboard
Edit config/aar-translator.php:
Publishing Assets
Database Tables
The package creates three tables:
| Table | Purpose |
|---|---|
translation_keys |
Stores each unique translation key with group and dead-key flag |
translation_values |
Stores the translated value per key and locale |
translation_memory |
Caches previously translated phrases to avoid redundant API calls |
Translation Memory
Translation memory prevents duplicate API calls by caching phrase-to-phrase translations.
Use 'driver' => 'cache' for Redis-backed memory in high-traffic apps.
Incremental Scanning
File hashes are cached in storage/app/aar-translator/file-cache.json. Only modified files are re-scanned on subsequent runs, making it fast even for large codebases.
Package Structure
Testing
Tests use Orchestra Testbench with an in-memory SQLite database — no external services required.
Extending
Adding a Custom Translator
Implement Aar\AutoTranslator\Translators\TranslatorInterface:
Changelog
See CHANGELOG.md for release history.
License
MIT — see LICENSE for details.
Contributing
Pull requests are welcome. For major changes, please open an issue first.
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m 'Add my feature' - Push the branch:
git push origin feature/my-feature - Open a Pull Request
Credits
Built with ❤️ using Laravel, TailwindCSS, and Alpine.js.
All versions of laravel-auto-translator with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
symfony/finder Version ^6.0|^7.0
guzzlehttp/guzzle Version ^7.0