Download the PHP package braune-digital/translation-base-bundle without Composer

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

BrauneDigitalTranslationBaseBundle

This Symfony2-Bundle provides basic features for translations and offers SonataAdmin integration.

Requirements

In order to install this bundle you will need:

If you want to use SonataAdmin integration you need a few more:

Installation

Just run composer:

And enable the Bundle in AppKernel.php:

Configuration

You may want to use an alternative Admin-Layout where you have a Dropdown Menu instead of the translation tabs:
Just configure SonataAdmin and A2lix to use the extended layouts in your config.yml.

Usage

Translatable properties of an entity (YourEntity) are moved to a new YourEntityTranslation entity:

Entity:

The magic __call() method is used to delegate a call to a translation property. For some Bundles (like SonataAdmin) you still need to define the wanted methods (e.g. getTitle). In most cases for SonataAdmin a __toString-method comes in handy for Relations as well.

EntityTranslation:

You still need to register both Entities in Doctrine, but you do not have to worry about the translation relations as they are dynamically added by DoctrineBehaviors, so you just need to define the normal fields and relations.

SonataAdmin Integration

This Bundle provides a Basic TranslationAdmin which you might want to extend from:

Languages

This Bundle also provides a basic Language Entity, which can be managed through SonataAdmin as well.

Todo

Add requirements with versions in composer.json.


All versions of translation-base-bundle with dependencies

PHP Build Version
Package Version
Requires knplabs/doctrine-behaviors Version 1.3.2
a2lix/translation-form-bundle Version 2.0.4
egeloen/ckeditor-bundle Version 2.5.2
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 braune-digital/translation-base-bundle contains the following files

Loading the files please wait ....