Download the PHP package lloc/composer-i18n-scripts without Composer

On this page you can find all versions of the php package lloc/composer-i18n-scripts. 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 composer-i18n-scripts

Composer i18n Scripts

Automate the internationalization workflow of your WordPress plugin or theme by wiring WP-CLI translation tools into familiar Composer commands.

Requirements

Installation

Composer automatically registers the plugin; no manual bootstrap code is needed. Running composer install on the project will keep the plugin active for all contributors.

Configuration

The plugin inspects your project root to infer settings:

Provide headers like the following so WP-CLI receives the right text domain and language directory:

If no metadata is found, defaults are Text Domain: messages and Domain Path: /languages.

Usage

Run the commands from the WordPress project root so that wp can load your environment.

Command Purpose
composer i18n:make-pot Scan the source directory and generate languages/<domain>.pot.
composer i18n:create-po <locale> Copy the .pot file to a locale-specific .po file (e.g. de_DE).
composer i18n:update-po Merge the current .pot changes into every .po in languages/.
composer i18n:make-mo Compile all .po files into .mo binaries.
composer i18n:make-php Export .po translations into PHP array files for performance-sensitive setups.
composer i18n:make-json Build JavaScript translation catalogs (*.json) without purging existing assets.

Example workflow:

Development

Refer to AGENTS.md for contributor conventions, coding standards, and pull request expectations.

Troubleshooting


All versions of composer-i18n-scripts with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^2.6
wp-cli/wp-cli-bundle Version ^2.12@dev
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 lloc/composer-i18n-scripts contains the following files

Loading the files please wait ...