定制 atico/translator-symfony-demo-local-file-to-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atico/translator-symfony-demo-local-file-to-php

Composer 安装命令:

composer create-project 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

README 文档

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

Using Make commands (recommended):

make demo  # Runs the translator with default options

Using console directly:

bin/console atico:demo:translator --sheet-name=common --book-name=frontend

This command will generate the translation files that will be stored into translations folder.

The generated files will be:

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:

Requirements

  • PHP >=8.4
  • Symfony >=7.3

Development Commands

The project includes a comprehensive Makefile for common development tasks.

Docker Management

make up              # Start development environment
make down            # Stop environment
make build           # Rebuild Docker images
make shell           # Access PHP container shell

Dependencies

make composer-install  # Install dependencies
make composer-update   # Update dependencies

Code Quality

make rector-dry-run  # Check Rector changes without applying
make rector          # Apply Rector code changes

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

make test              # Run PHPUnit tests
make test-coverage     # Run tests with HTML coverage report
make qa                # Run all quality checks (Rector + tests)

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 qa to 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.

atico/translator-symfony-demo-local-file-to-php 适用场景与选型建议

atico/translator-symfony-demo-local-file-to-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 atico/translator-symfony-demo-local-file-to-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 atico/translator-symfony-demo-local-file-to-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 atico/translator-symfony-demo-local-file-to-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-12