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.

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-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 Packagistcomposer 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


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

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.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add my feature'
  4. Push the branch: git push origin feature/my-feature
  5. Open a Pull Request

Credits

Built with ❤️ using Laravel, TailwindCSS, and Alpine.js.


All versions of laravel-auto-translator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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
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 aar/laravel-auto-translator contains the following files

Loading the files please wait ...