Download the PHP package elao/form-translation-bundle without Composer

On this page you can find all versions of the php package elao/form-translation-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 form-translation-bundle

ElaoFormTranslationBundle

CI

Description:

This bundle provides a nice way of generating translation keys for form fields in a "logic" way. It is used mainly to generate automatic labels on fields but can be use to build any key.

For example, in a form RegisterType named "register" the key for its field "name" would be form.register.children.name.label.

Another more advanced example would be a field "emails" which is a collection of text inputs, it'll generate:

Or in yml:

Note: The keys will only be generated at runtime and won't be dumped when you use translation:update yet (we're working on it).

Installation:

This bundle supports maintained Symfony versions only.

Add ElaoFormTranslationBundle to your composer.json:

Now download the bundle by running the command:

php yml elao_form_translation: blocks:

Prefix for children nodes (string|false)

    children:   "children"

    # Prefix for prototype nodes (string|false)
    prototype:  "prototype"

    # Prefix at the root of the key (string|false)
    root:       "form"

    # Separator te be used between nodes (string|false)
    separator:  "."

yml elao_formtranslation: blocks: root: false children: false separator: "" yml elao_form_translation: default_translation_domain: "forms" yml elao_form_translation: default_translation_domain: false yml elao_form_translation:

# Can be disabled
enabled: true

# Generate translation keys for all missing labels
auto_generate: false

# Set default translation domain on all forms
default_translation_domain: ~

# Customize available keys
keys:
    form:
        label:  "label"
        help:   "help"
        # Add yours ...
    collection:
        label_add:      "label_add"
        label_delete:   "label_delete"
        # Add yours ...

# Customize the ways keys are built
blocks:

    # Prefix for prototype nodes
    prototype:  "prototype"

    # Prefix for children nodes
    children:   "children"

    # Prefix at the root of the key
    root:       "form"

    # Separator te be used between nodes
    separator:  "."

All versions of form-translation-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/framework-bundle Version ^6.4|^7.4|^8.0
symfony/form Version ^6.4|^7.4|^8.0
symfony/property-access Version ^6.4|^7.4|^8.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 elao/form-translation-bundle contains the following files

Loading the files please wait ...