Download the PHP package headwires/translator-client without Composer

On this page you can find all versions of the php package headwires/translator-client. 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 translator-client

Translator Client for Laravel

Laravel package for LangSyncer - live translation management without deployments.

Features

Requirements

Installation

Publish the configuration:

Quick Start

Add to your .env:

Sync translations:

Done! Use Laravel's translation helpers as usual:

Configuration

Environment Variables

Variable Description Default
CLI_TRANSLATOR_API_KEY Your project API key from LangSyncer required
CLI_TRANSLATOR_CLIENT_MODE static, live, or auto static
CLI_TRANSLATOR_SYNC_STRATEGY overwrite or merge overwrite
CLI_TRANSLATOR_CLIENT_CACHE_TTL Cache TTL in seconds (live mode) 3600
CLI_TRANSLATOR_CLIENT_WEBHOOK_ENABLED Enable webhook endpoint true

Client Modes

Static Mode (Default)

Translations saved as PHP files in resources/lang/. Best for production.

Live Mode

Translations loaded from cache, updated instantly via webhooks. Uses your project's configured cache driver.

Auto Mode

Automatically selects live mode for serverless (Vapor) or static mode otherwise.

Sync Strategies

Overwrite (Default)

Replaces local files completely. Use when LangSyncer is your source of truth.

Merge

Preserves local-only keys while updating from LangSyncer. CDN values take precedence for existing keys.

Commands

translator:sync

Download translations from LangSyncer:

translator:warmup

Pre-cache translations for live mode. Run during deployment:

translator:status

Check configuration and connection status:

Output:

translator:scan

Scan your codebase for hardcoded strings:

Scans .blade.php and .php files for text that should be translated.

translator:apply

Apply approved scanner suggestions and activate translations:

Multi-Project Setup

Configure multiple projects in config/translator-client.php:

Sync specific project:

Webhooks

The package automatically registers a webhook endpoint at /api/translator/webhook. Configure this URL in your LangSyncer project settings.

When translations are published in LangSyncer, the webhook triggers an automatic sync.

Customize the route:

Disable webhooks:

Deployment

Add to your deployment script:

Laravel Scheduler

Auto-sync translations:

File Structure

After syncing (static mode):

Note: Synced files include a warning header. Create separate files for local-only translations.

License

MIT

Support


All versions of translator-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.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 headwires/translator-client contains the following files

Loading the files please wait ...