Download the PHP package guizoxxv/laravel-json-lang without Composer

On this page you can find all versions of the php package guizoxxv/laravel-json-lang. 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-json-lang

Laravel JSON Lang

A package to export Laravel PHP translation files as JSON.

How it works

This package adds a command that processes input files by grouping them according to their respective languages. For each language, a job is dispatched to enable parallel processing. This job handles the files by reading each translation key and updating it or not, in a JSON translation file. The JSON translation keys are structured to ensure that the translation helper function works the same way as it would if the translations were coming from PHP files.

Installation

  1. Require the package via Composer:

  2. Publish the package's configuration file:

  3. Run the command to export files:

Configuration

The following configuration parameters are available:

1. input_paths

An array of target file system paths to be processed. Each element in the array should be a string representing either a file path or a directory path. The path should be absolute, starting from the root of the application.

Example:

In this example, /path/to/specific/file.php is a single file that will be processed, while all .php files within /path/to/directory/ and its subdirectories will also be processed.

Vendor prefix

When using package translations, a key/value pair with the path as key and package namespace as value to indicate the correct translation prefix.

Example:

2. output_path

Specifies the directory where the JSON translation files should be saved.

3. override_existing_keys

If a key already exists in the JSON translation files, specifies whether to keep the ones in the JSON file (false) or override with the value from the PHP file being processed (true).

4. languages

An array (allowlist) of languages to be processed. When not provided, all available languages will be processed.

Observations

  1. This package reads the full content of translation files into memory. Should you encounter memory issues, try reducing the number of languages being processed at once.

All versions of laravel-json-lang with dependencies

PHP Build Version
Package Version
No informations.
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 guizoxxv/laravel-json-lang contains the following files

Loading the files please wait ....