Download the PHP package orkhanahmadov/spreadsheet-translations without Composer

On this page you can find all versions of the php package orkhanahmadov/spreadsheet-translations. 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-translations

Spreadsheet translations for Laravel

Latest Version on Packagist Total Downloads GitHub Actions

Spreadsheet Translation

Why?

Maintaining multi-language support in Laravel applications can be hard

Alternatively you can store application's translations in a spreadsheet file, something like:

key en de es
dashboard.statistics Statistics Statistik Estadísticas
login.form.first_name First name Vorname Nombre de pila
login.welcome Welcome Wilkommen Bienvenida

This solves all above-mentioned problems:

But now the problem is, Laravel cannot directly work with this spreadsheet file to display translations.

Here comes spreadsheet-translations package! It reads spreadsheet file that contains translations for multiple locales and generates plain JSON files out of it that Laravel can work with.

Installation

You can install the package via composer:

Publish config file using:

Config file contains following parameters:

Usage

Let's imagine we have the following Excel spreadsheet file which is located in remote server with public URL https://example.com/translations.xlsx. Spreadsheet contains:

comments key en de es
Dashboard statistics section title dashboard.statistics Statistics Statistik Estadísticas
ignore this row !!!!!
First name field on login form login.form.first_name First name Vorname Nombre de pila
Welcome page title login.welcome Welcome Wilkommen Bienvenida

We want to:

Once we publish the config file we need to make follow adjustments:

Package ships with an artisan command translations:generate.

When executed it generates necessary JSON translation files in Laravel's lang directory.

For above spreadsheet file and configuration translations:generate will generate following folder and file structure:

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

The MIT License (MIT). Please see License File for more information.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Alternatives

You can check larswiegers/laravel-translations-checker if you want to detect missing translations.


All versions of spreadsheet-translations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^6.0 || ^7.0
illuminate/console Version ^9.0 || ^10.0 || ^11.0
illuminate/contracts Version ^9.0 || ^10.0 || ^11.0
illuminate/http Version ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^9.0 || ^10.0 || ^11.0
phpoffice/phpspreadsheet Version ^1.28 || ^2.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 orkhanahmadov/spreadsheet-translations contains the following files

Loading the files please wait ....