charles-rumley/php-po-to-json

Installs: 75 362

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 2

Open Issues: 0

Type:package

pkg:composer/charles-rumley/php-po-to-json

dev-master 2016-09-08 12:53 UTC

This package is not auto-updated.

Last update: 2025-10-06 19:12:25 UTC


README

Convert PO files to Jed-compatible JSON using PHP.

Inspired by: - github.com/mikeedwards/po2json

Installation

composer require charles-rumley/php-po-to-json

Usage

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();