Download the PHP package pfcode/symfony-i18n-comparator without Composer

On this page you can find all versions of the php package pfcode/symfony-i18n-comparator. 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 symfony-i18n-comparator

I18nComparatorBundle

Utility for making a comparison of duplicated translation files in Symfony projects.

Use case

The case this util resolves is very specific - it's intended to help find differences between translation files belonging to the same domain and language, but saved in different formats (messages.en.xlf and messages.en.yml, for example).

Note: Such differences should not occur under usual circumstances when using symfony/translation component. Please see the Example section below and check if this bundle actually solves your problem.

Installation

You can add this bundle into your Symfony project using Composer:

This bundle requires at least Symfony 4.4 or 5.0 and PHP 7.1 or later and it's not intended to be used on production environments.

Example

Let's say you have two translation files in your project, that belong to the same domain and are in the same language:

translations/messages.en.xlf:

translations/messages.en.yml:

These translation files obviously have some differences. One of them has nav.search key missing and other messages have different values. Comparing those files in a text editor would be painful.

To compare them at the logical level (translation keys, that is), you can use a command provided by this bundle:

With this command, searching for differences across various translation formats should be a lot easier.

Supported translation formats

This bundle registers a ComparatorFactory service and passes references to all known translation loaders (all services tagged by translation.loader) to it. So it supports all formats that your Symfony installation already does.

License

This project is distributed under the MIT license.


All versions of symfony-i18n-comparator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0
symfony/config Version ^4.4 || ^5.0
symfony/dependency-injection Version ^4.4 || ^5.0
symfony/http-kernel Version ^4.4 || ^5.0
symfony/yaml Version ^4.4 || ^5.0
symfony/console Version ^4.4 || ^5.0
symfony/translation Version ^4.4 || ^5.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 pfcode/symfony-i18n-comparator contains the following files

Loading the files please wait ...