Download the PHP package atico/spreadsheet-translator-symfony-bundle without Composer

On this page you can find all versions of the php package atico/spreadsheet-translator-symfony-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 spreadsheet-translator-symfony-bundle


Spreadsheet Translator Symfony Bundle

The Spreadsheet Translator Symfony Bundle allows creating translation files for your web projects from spreadsheet files (local or remote excel files).

There are some demos at the end of the documentation that aims to help you as much as possible.

This bundle is able to manage Spreadsheet files (xls/xlsx) from a local drive or cloud services such as: Google Drive and Microsoft One Drive, both of them with or without authentication.

The main advantages for managing web translations from spreadsheet files are:


Example of Spreadsheet File with a single tab


Adapters

The bundle is constructed having in mind separation of concerns, so functionallities are splitted in 3 types of adapters.


Installation

Add the atico/spreadsheet-translator-symfony-bundle package to your require section in the composer.json file (*)

Add the Spreadsheet Translator Symfony Bundle to your application's kernel:

You need to separately install 3 adapters: a provider, a reader and an exporter.

(*) For the default configuration to work, three additional packages are required:


Configuration

Add to config.yml the following entry:


Adapters as independent Packages

Links to the libraries:

Structure of Spreadsheet File with a single tab

tab name: common

Section and subsection will be joined with a dot, you can specify another character by setting a custom shared->name_separator value. In this case there will be 2 different translation keys: homepage.title and homepage.subtitle.

The package automatically detects locales by their format, in this example these are the titled columns: es_ES, en_GB and fr_FR.

The package will translate the tab with the name specified in the configuration exporter->domain value. It's planned to extend this behaviour to several tabs or all the tabs.

The configuration allows a lazy mode parameter (shared => lazy_mode). This will allow inheriting which helps writing faster, having a more clear view of the translation keys and avoiding copy and paste mistakes.

Structure of Spreadsheet File with a single tab in lazy mode

There will be 3 files created at app/Resources/translations: demo_common.es_ES.xliff, demo_common.en_GB.xliff and demo_common.frFR.xliff. Please notice the prefix demo, this is the value set at the configuration var exporter->prefix.

The contents for the exporter->format to xliff, the resulting file contents for es_ES (demo_common.es_ES.xliff) are:

There are two additional exporter formats adapters, you must include them in your composer json before using them.

Setting exporter->format to php would result for en_GB (demo_common.en_GB.php) the following translation file:

And finally, setting the exporter->format to yml would result for fr_FR (demo_common.fr_FR.yml) the following translation file:


Lightweight Symfony Demos

  1. Local file as a spreadsheet source file and php format for translated file.
  2. Google Spreadsheet with read permisions as source (without Auth) and yml format for translated file.
  3. Google Spreadsheet with Authentication required as source and php format for translated file.


Requirements


Contributing

We welcome contributions to this project, including pull requests and issues (and discussions on existing issues).

If you'd like to contribute code but aren't sure what, the issues list is a good place to start. If you're a first-time code contributor, you may find Github's guide to forking projects helpful.

All contributors (whether contributing code, involved in issue discussions, or involved in any other way) must abide by our code of conduct.


License

Spreadsheet Translator Symfony Bundle is licensed under the MIT License. See the LICENSE file for full details.


All versions of spreadsheet-translator-symfony-bundle with dependencies

PHP Build Version
Package Version
Requires atico/spreadsheet-translator-core Version ^1.0
php Version >=8.0
symfony/config Version ^6.0
symfony/dependency-injection Version ^6.0
symfony/yaml Version ^6.0
symfony/http-kernel Version ^6.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 atico/spreadsheet-translator-symfony-bundle contains the following files

Loading the files please wait ....