atico/translator-symfony-demo-onedrive-to-xliff 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

atico/translator-symfony-demo-onedrive-to-xliff

Composer 安装命令:

composer create-project atico/translator-symfony-demo-onedrive-to-xliff

包简介

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft OneDrive spreadsheet file and creates translation files in XLIFF format

README 文档

README

Symfony demo application that takes a Microsoft OneDrive spreadsheet and generates translation files in XLIFF format.

Requirements

  • PHP >= 8.4
  • Symfony 7.0
  • Docker & Docker Compose (recommended)

Installation

composer create-project atico/translator-symfony-demo-onedrive-to-xliff

Demo spreadsheet: https://onedrive.live.com/embed?resid=F52C4DBF73226B55%%212071&authkey=%%21ANaIXSe9EB_Vywo&em=2&em=2&cid=F52C4DBF73226B55%%212071

Notice that this file cannot be opened via web browser but with the atico:demo:translator command.

Running with Docker

Quick Start

make build          # Build Docker images
make up             # Start services
make composer-install
make demo           # Run demo translator command

Available Make Commands

Docker Commands:

make build              # Build or rebuild the Docker images
make up                 # Start the services in the background
make down               # Stop and remove the services
make restart            # Restart the services
make shell              # Access the PHP container shell

Composer Commands:

make composer-install   # Run composer install inside the container
make composer-update    # Run composer update inside the container

Testing Commands:

make test               # Run PHPUnit tests
make test-coverage      # Run tests with coverage report

Code Quality Commands:

make rector             # Run Rector to fix code (applies changes)
make rector-dry-run     # Run Rector in dry-run mode (shows changes)

Application Commands:

make demo               # Run demo translator command
make console [command]  # Run any Symfony console command

Utility Commands:

make clean              # Clean cache and temporary files

Running Locally (Without Docker)

composer install
bin/console atico:demo:translator --sheet-name=common

# Run tests
vendor/bin/phpunit

# Run Rector
vendor/bin/rector process --dry-run
vendor/bin/rector process

Testing

This project includes comprehensive unit tests for all components.

# Run all tests
make test

# Generate coverage report (saved to var/coverage/)
make test-coverage

# Run specific test
docker-compose -f docker/docker-compose.yaml exec php-atic-odp-xe vendor/bin/phpunit tests/Command/TranslatorCommandTest.php

Code Quality

The project uses Rector for automated code refactoring and quality improvements.

# Check what changes Rector would make
make rector-dry-run

# Apply Rector changes
make rector

Output

Translation files are generated in translations/:

translations/
  ├── demo_common.es_ES.xliff
  ├── demo_common.en_GB.xliff
  └── demo_common.it_IT.xliff

OneDrive File Sharing

  1. Open spreadsheet in OneDrive
  2. Share → Embed → Generate code
  3. Extract AUTHKEY from iframe code
  4. Copy RESID and CID from URL
  5. Build URL: https://onedrive.live.com/embed?resid=RESID&authkey=AUTHKEY&em=2&cid=CID

Note: Escape % characters in URL values by doubling them (%%)

Related Projects

CI/CD

The project includes GitHub Actions workflow for automated testing on every push and pull request.

Dependencies

Core Libraries

  • samuelvi/spreadsheet-translator-core: ^8.4
  • samuelvi/spreadsheet-translator-symfony-bundle: ^8.4
  • samuelvi/spreadsheet-translator-provider-onedrive: ^8.4
  • samuelvi/spreadsheet-translator-reader-xlsx: ^8.4
  • samuelvi/spreadsheet-translator-exporter-xliff: ^8.4

Symfony Components

  • Symfony 7.0 (Console, Framework Bundle, Translation, etc.)

Development Tools

  • PHPUnit 11.5 for testing
  • Rector 2.1 for code quality and refactoring

License

Licensed under the MIT License. See LICENSE file for details.

atico/translator-symfony-demo-onedrive-to-xliff 适用场景与选型建议

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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