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

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

A2lix TranslationForm Bundle

Latest Stable Version Latest Unstable Version Total Downloads License Build Status codecov

A small, flexible Symfony bundle that helps you build forms to manage translations for Doctrine entities. It integrates with common translation strategies (Gedmo Personal Translation and Knp DoctrineBehaviors) and provides form types, helpers and Twig components to make working with multilingual data easier.

Key features

[!NOTE] Use A2lixAutoFormBundle for automatic form generation and customization.

[!TIP] A complete demonstration is also available at a2lix/demo.

Screenshot example

Installation

Basic configuration

Add a minimal configuration in config/packages/a2lix.yaml:

If you keep the default setup, the bundle will automatically prepend the chosen form theme (Bootstrap 5 layout by default) into Twig's form_themes.

Compatibility: Gedmo & Knp

Usage examples

TranslationsType (Knp or Gedmo)

TranslationsFormsType (one-record-per-locale)

TranslatedEntityType (entity choices with translation labels)

Locale selection widget

Twig helpers & components

Locale rendering function:

LocaleSwitcher component:

LocaleProvider

The bundle centralizes locale configuration through a LocaleProviderInterface. By default, SimpleLocaleProvider is registered and configured from bundle settings. You can replace it with your own service by changing locale_provider in the bundle configuration.

Integration with AutoFormBundle

This bundle integrates cleanly with a2lix/auto-form-bundle. When using AutoType with translatable entities, TranslationsType and TranslationsFormsType can be automatically configured and rendered based on entity metadata and bundle options.

License

This package is available under the MIT license — see the LICENSE file.


All versions of translation-form-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
a2lix/auto-form-bundle Version ^1.0
symfony/config Version ^7.4|^8.0
symfony/dependency-injection Version ^7.4|^8.0
symfony/doctrine-bridge Version ^7.4|^8.0
symfony/event-dispatcher Version ^7.4|^8.0
symfony/form Version ^7.4|^8.0
symfony/http-kernel Version ^7.4|^8.0
symfony/intl Version ^7.4|^8.0
symfony/options-resolver Version ^7.4|^8.0
symfony/translation Version ^7.4|^8.0
symfony/ux-twig-component Version ^2.31|^3.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 a2lix/translation-form-bundle contains the following files

Loading the files please wait ...