Download the PHP package phiil/googlesheets-translation-bundle without Composer

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

Build Status

SymfonyGoogleSheetsTranslationBundle

Introduction

Translation management can be rather... pesky. This bundle allows you to use a single Googlesheet and push your translations to your symfony site within seconds.

Features:

Requirements

Installation

Run composer require phiil/googlesheets-translation-bundle

Usage

Video Guide

Want to watch a video instead of reading the guide? Today you're lucky! Watch the video on YouTube: Watch the video

Text Guide

The first thing you need is a Googlesheet, go ahead and create on sheets.google.com. My demo translations sheet is available at this link. I'd suggest that you just duplicate that one into your account / apply this structure - feel free to change the head => add as many locales as you want!

Better customization & configuration possibilities for the GoogleSheet are in the works - for now, just try to stick as close as possible to the structure.

Now, you need to publish it to the web. What first sounded very weird to me (should I really publish my translations publicly to the web?!), isn't really that dangerous. The chances of someone finding your translations is really low and on top of that no one can use it to attack you / do harm to your site.

Step-by-step tutorial:

  1. Go to File > Publish to the web: Publish Step 1
  2. A window should pop up, just press 'Publish' (assuming that you want to publish the whole sheet): Publish Step 2
  3. Now, you need to extract the ID of your sheet. Back to the URL window (CMD + L / CTRL + L for hot key lovers), copy the part which is marked in the following image: Publish Step 3.
  4. Finally we can hop back in Symfony. In config/services.yaml insert it like the following:

I went ahead and already pasted in the ID from above.

  1. (Optional) Configure which sheet pages you want to add. If you want to only push a single sheet page, you have to add the following parameter:

My final config (config/services.yaml):

  1. Push your translations with the built-in command: phiil:translation:reload (in my case, I have to execute php bin/console phiil:translation:reload). Have a look at the output of my console: Publish Step 7

Congratulations, you're all set!

Problems? Issues?

Just post them here on Github or contact me via email: [email protected]. Feel free to contribute!


All versions of googlesheets-translation-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1
symfony/framework-bundle Version ^5.4
symfony/translation Version ^5.4
symfony/cache Version ^5.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 phiil/googlesheets-translation-bundle contains the following files

Loading the files please wait ....