faimmedia / i18n-json
Simple PHP library to validate and match JSON translation files, and also pretty format them.
dev-master
2024-10-25 14:54 UTC
Requires
- php: ^8.3
- ext-pdo: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.57
- phpunit/phpunit: ^10.3
This package is auto-updated.
Last update: 2025-03-25 15:36:11 UTC
README
Simple PHP library to validate and match JSON translation files, and also pretty format them.
Install & usage
Add composer
Install this library using composer:
composer require faimmedia/i18n-json
Run validator (using CLI)
Use the ./vendor/bin/i18n-json
command to run the json compare.
Development
Start up docker containers:
docker compose up -d
Run tests:
./bin/test
Run validator CLI:
docker compose exec -T test /app/bin/i18n-json --path=/app/test/json/compare1