atico / translator-symfony-demo-local-file-to-php
Spreadsheet Translator. Symfony Demo Application. Takes a local spreadsheet file and creates a translation file per locale in Php format
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/atico/translator-symfony-demo-local-file-to-php
Requires
- php: >=8.4
- samuelvi/spreadsheet-translator-core: ^8
- samuelvi/spreadsheet-translator-exporter-php: ^8.1
- samuelvi/spreadsheet-translator-provider-localfile: ^8.1
- samuelvi/spreadsheet-translator-reader-xlsx: ^8.1
- samuelvi/spreadsheet-translator-symfony-bundle: 8.4.1
- symfony/console: ^7.0
- symfony/dotenv: ^7.0
- symfony/filesystem: ^7.0
- symfony/finder: ^7.0
- symfony/framework-bundle: ^7.0
- symfony/http-foundation: ^7.0
- symfony/http-kernel: ^7.0
- symfony/monolog-bundle: ^3.10
- symfony/routing: ^7.0
- symfony/runtime: ^7.0
- symfony/security-bundle: ^7.0
- symfony/translation: ^7.0
- symfony/yaml: ^7.0
Requires (Dev)
- rector/jack: ^0.2.9
- rector/rector: ^2.1
This package is not auto-updated.
Last update: 2025-10-27 05:12:37 UTC
README
Introduction
Lightweight Symfony Demo Application for the Spreadsheet Translator functionallity. The demo brings a command that takes a local spreadhseet file and creates a translation file per locale in Php format.
Installation
composer create-project samuelvi/translator-symfony-demo-local-file-to-php
This will install the demo application into your computer
The source demo spreadsheet file is located at app/Resources/doc/homepage.xlsx
Running the demo
type in you terminal: bin/console atico:demo:translator --sheet-name=common
This command will generate the translation files that will be stored into app/translations folder.
The generated files will be:
app
|
└───Resources
│
└──translations
│ demo_common.en_GB.php
│ demo_common.es_ES.php
│ demo_common.fr_FR.php
demo_common.en_GB.php will contain:
<?php return array ( 'homepage_title' => 'Spreadsheet translator', 'homepage_subtitle' => 'Translator of web pages from spreadsheets', );
Notes
composer.json will include the following Spreadsheet Translator dependencies:
"samuelvi/spreadsheet-translator-core": "^8.0",
"samuelvi/spreadsheet-translator-symfony-bundle": "8.4.1",
"samuelvi/spreadsheet-translator-provider-localfile": "^8.1",
"samuelvi/spreadsheet-translator-reader-xlsx": "^8.1",
"samuelvi/spreadsheet-translator-exporter-php": "^8.1",
Related
Symfony Bundle:
Symfony Demos:
- Symfony Demo. Takes a local file and creates translation files per locale in php format
- Symfony Demo. Takes a google drive spreadsheet and creates translation files per locale in yml format
- Symfony Demo. Takes a microsoft one drive spreadsheet and creates translation files per locale in xliff format
Requirements
- PHP >=8.4
- Symfony >=7.3
Run Rector
Rector is configured to upgrade code to PHP 8.4 and Symfony 7.3 standards.
Dry-run mode (check changes without applying):
bin/rector process --dry-run
Apply changes:
bin/rector process
Using Docker:
make shell bin/rector process --dry-run # Check changes first bin/rector process # Apply changes
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.