dev-master
9999999-dev
MIT
The Requires
- php >=5.3.0
- sepia/po-parser ^4.2
The Development Requires
by Charles Rumley
php json translation i18n jed
Convert PO files to Jed-compatible JSON using PHP., (*1)
Inspired by: - github.com/mikeedwards/po2json, (*2)
composer require charles-rumley/php-po-to-json
use CharlesRumley\PoToJson; $poToJson = new PoToJson(); // Convert a PO file to JSON $rawJson = $poToJson->withPoFile($path)->toRawJson(); // Convert a PO file to Jed-compatible JSON $jedJson = $poToJson->withPoFile($path)->toJedJson();
MIT
php json translation i18n jed