Download the PHP package atico/translator-symfony-demo-local-file-to-php without Composer
On this page you can find all versions of the php package atico/translator-symfony-demo-local-file-to-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atico/translator-symfony-demo-local-file-to-php
More information about atico/translator-symfony-demo-local-file-to-php
Files in atico/translator-symfony-demo-local-file-to-php
Package translator-symfony-demo-local-file-to-php
Short Description Spreadsheet Translator. Symfony Demo Application. Takes a local spreadsheet file and creates a translation file per locale in Php format
License MIT
Informations about the package translator-symfony-demo-local-file-to-php
Spreadsheet Translator Symfony Demo Application - Use Case
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
Using Make commands (recommended):
Using console directly:
This command will generate the translation files that will be stored into translations folder.
The generated files will be:
demo_common.en_GB.php will contain:
Notes
composer.json will include the following Spreadsheet Translator dependencies:
Related
Symfony Bundle:
Symfony Demos:
- Symfony Bundle
- 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
Development Commands
The project includes a comprehensive Makefile for common development tasks.
Docker Management
Dependencies
Code Quality
Rector is configured with modern syntax to upgrade code to PHP 8.4 and Symfony 7.3+ standards:
- PHP 8.4 features (property hooks, asymmetric visibility, etc.)
- Symfony 7.1+ best practices
- Code quality improvements (dead code removal, type declarations, etc.)
- Doctrine annotations to attributes conversion
Testing
The project includes comprehensive unit tests with:
- PHPUnit 11.5+
- Symfony PHPUnit Bridge
- Tests for TranslatorCommand and Kernel
- Modern PHP 8.4 attributes (#[Test], #[CoversClass])
Continuous Integration
GitHub Actions workflow is configured to run on every push and pull request:
- Code quality checks with Rector
- PHPUnit tests with coverage
- Runs on PHP 8.4
Contributing
We welcome contributions to this project, including pull requests and issues (and discussions on existing issues).
Before submitting a PR, please ensure:
- Run
make qato verify code quality and tests pass - Add tests for new features
- Update documentation as needed
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 translator-symfony-demo-local-file-to-php with dependencies
samuelvi/spreadsheet-translator-core Version ^8
samuelvi/spreadsheet-translator-symfony-bundle Version 8.4.1
samuelvi/spreadsheet-translator-provider-localfile Version ^8.1
samuelvi/spreadsheet-translator-reader-xlsx Version ^8.1
samuelvi/spreadsheet-translator-exporter-php Version ^8.1
symfony/console Version ^7.0
symfony/dotenv Version ^7.0
symfony/filesystem Version ^7.0
symfony/finder Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/http-foundation Version ^7.0
symfony/http-kernel Version ^7.0
symfony/routing Version ^7.0
symfony/runtime Version ^7.0
symfony/security-bundle Version ^7.0
symfony/translation Version ^7.0
symfony/yaml Version ^7.0
symfony/monolog-bundle Version ^3.10