Download the PHP package hyperlinkgroup/linguist without Composer

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

Linguist Connector for Laravel

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A package to help you manage your translation files with Linguist — A better way to manage your language files.

Installation

You can install the package via composer:

You can optionally publish the config file with:

Quick Start (Setup Wizard)

The easiest way to get started is using the interactive setup wizard:

This wizard will guide you through:

  1. API Token - Enter your Linguist API token
  2. Project Selection - Choose an existing project or create a new one
  3. Sync Mode - Select how you want to synchronize translations:
    • Sync: Merge local and remote translations (two-way)
    • Pull: Download from Linguist (overwrite local)
    • Push: Upload local translations to Linguist
  4. Options - Configure setup preferences and optional auto-translation

Configuration

The published config file (config/linguist.php):

The setup wizard automatically writes these values to your .env file.

LINGUIST_URL should point to the versioned API base URL (for example https://api.your-domain.com/v2). LINGUIST_API_TOKENS_URL is the URL opened when users follow the Linguist API settings link printed before the token prompt (clickable in terminals that support hyperlinks; otherwise the label is still shown as plain text). LINGUIST_PULL_MINIFIED controls whether pulled translation files are written as minified JSON. Defaults to false (pretty-printed).

Commands

linguist:setup

Interactive wizard for initial setup and configuration. Handles project creation/selection, sync mode configuration, and API token management.

linguist:sync

Runs translation synchronization in one of three modes (sync, pull, push).

If run interactively, the command prompts for mode selection (same choices as setup). For scheduler/non-interactive execution, the command defaults to sync mode unless you pass an explicit mode flag:

Alternatively, use the --mode option:

Mode-specific options:

--prune-remote-keys deletes remote keys that no longer exist locally before upload (sync mode). --no-activate-missing-languages skips activating local languages that are not yet active in the remote project. Applies to all modes. If omitted, the command prompts interactively or activates automatically in non-interactive contexts. --sync-source controls which side wins for existing keys in sync mode: remote (default) keeps the remote value, local overwrites with the local value.

Sync Modes

Sync Mode (Recommended)

Performs a two-phase sync:

Pull Mode

Downloads all translations from Linguist and overwrites local files:

Push Mode

Uploads local translations to Linguist:

Events

The package dispatches Laravel events after successful operations:

Each event contains:

Example listener:

Advanced Usage

Using Actions Directly

For custom implementations, you can call the provided actions directly:

Data Transfer Objects

The package provides typed DTOs for configuration:

Error Handling and Reporting

All sync operations return detailed SyncResult objects with:

Example output:

API Endpoints

The package communicates with Linguist's REST API (/v2):

All endpoints require Bearer token authentication.

Testing

The test suite includes:

License

The MIT License (MIT). Please see License File for more information.


All versions of linguist with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
guzzlehttp/guzzle Version ^7.2
illuminate/contracts Version ^12.0|^13.0
lorisleiva/laravel-actions Version ^2.10
spatie/laravel-package-tools Version ^1.93
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 hyperlinkgroup/linguist contains the following files

Loading the files please wait ...