Download the PHP package zicht/messages-bundle without Composer

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

ZichtMessagesBundle: manage your translatable messages in the database

The ZichtMessagesBundle provides an Doctrine entity and admin screens for managing messages and have the database provide translations for message keys. Additionally, some console tools are available for your convenience.

Admin

The admin is based on the SonataAdminBundle.

Console tools

Some utility console tools are available.

Installing

Configure manual cache clear

Edit your zicht_admin.yml and add:

Message state

The messages-bundle maintains a state for each message, this state can be either import, user, or unknown. You can configure z to import messages on every deploy by adding the following:

To ensure that the message state is properly updated, add the following to you z config:

Automatic translation

Leverage the zicht:message:translate command with automatic translation through an API of choice. Kickstart the usage by using the provided Google Translate API.

Setup

composer require google/cloud-translate

Configuration

Define the Google Translator as a service in your project. Your API key should be the private key from a service account (https://cloud.google.com/translate/docs/basic/setup-basic)

Add a CompilerPass to register a BatchTranslatorInterface on the MessageTranslator:

Usage

In this example we have copied a .nl.yaml to a es.yaml and we are informing the command that the sourcelanguage is nl and the targetlanguage should be es. As we have already renamed the file, only contents of this file will be rewritten.

Conditions

The targetlanguage (--target=xx) is required for yaml as it cannot be autodiscovered. For xlf we use the target-language attribute inside the file, but can be forced by using the target-option as well.

Parameters in the translations are rewritten and not sent to the translation-api to prevent translating them. They should be in the format of %param%, !param or {param}.

If your file is in xliff, we only support 1.2.

If your file is in yaml, and has hierarchical contents, this will be lost and the file will be rewritten with single lines containing the full path to your translation.

Before

After

Maintainer(s)


All versions of messages-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
doctrine/orm Version ^2.5
doctrine/dbal Version ^2.13.1 || ^3
sonata-project/admin-bundle Version ^4
symfony/console Version ^6.4
symfony/finder Version ^6.4
symfony/yaml Version ^6.4
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 zicht/messages-bundle contains the following files

Loading the files please wait ....