PHPackages                             wisembly/jsgettext - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. wisembly/jsgettext

Abandoned → [wisembly/xgettext](/?search=wisembly%2Fxgettext)Library[Localization &amp; i18n](/categories/localization)

wisembly/jsgettext
==================

Javascript poEdit parser written in PHP

0.8.0(11y ago)158.5k5MITPHPPHP &gt;=5.3.0CI failing

Since Oct 22Pushed 3y ago5 watchersCompare

[ Source](https://github.com/Wisembly/xgettext-php)[ Packagist](https://packagist.org/packages/wisembly/jsgettext)[ RSS](/packages/wisembly-jsgettext/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (24)Used By (0)

Xgettext
========

[](#xgettext)

[![Build Status](https://camo.githubusercontent.com/26c913380ebaa6ed12dfe88e4e8a649565c5d57b34a38843782a43aae76508f9/68747470733a2f2f7472617669732d63692e6f72672f576973656d626c792f78676574746578742d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Wisembly/xgettext-php)

xgettext PHP implementation. Curently provides 2 parsers:

- Javascript parser
- Handlebars parser

Install
=======

[](#install)

The recommended way to install Xgettext is through [Composer](http://getcomposer.org/):

```
{
    "require": {
        "wisembly/xgettext-php": "@stable"
    }
}
```

Usage
=====

[](#usage)

Parser
------

[](#parser)

### Javascript parser

[](#javascript-parser)

Simply create a new parser in Poedit (name it for example `Javascript`)`. Then, set up xgettext like this:

[![configure xgettext parser](https://raw.githubusercontent.com/Wisembly/xgettext-php/master/doc/js.png)](https://raw.githubusercontent.com/Wisembly/xgettext-php/master/doc/js.png)

**WARNING:** Javascript parser currently parse only 1rst and 2nd arguments. It also do not parse strings with non matching parenthesis. (avoid smileys..)

### Handlebars parser

[](#handlebars-parser)

Same like above, just add `-l "handlebars"` in yout `xgettext` call to stipulate you want to use handlebars parser with xgettext-php.

[![configure xgettext parser](https://raw.githubusercontent.com/Wisembly/xgettext-php/master/doc/hbs.png)](https://raw.githubusercontent.com/Wisembly/xgettext-php/master/doc/hbs.png)

JSON Dumper
-----------

[](#json-dumper)

```
$ bin/dumper -i input.po -o output.json

```

Requirements
------------

[](#requirements)

PHP &gt;= 5.3

Licence
-------

[](#licence)

Xgettext is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Recently: every ~192 days

Total

21

Last Release

3440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11400ade55a71197808c548868ec15b5061fd4f88accaafcdd799beb40324403?d=identicon)[guillaumepotier](/maintainers/guillaumepotier)

---

Top Contributors

[![guillaumepotier](https://avatars.githubusercontent.com/u/496234?v=4)](https://github.com/guillaumepotier "guillaumepotier (56 commits)")[![lunika](https://avatars.githubusercontent.com/u/767834?v=4)](https://github.com/lunika "lunika (1 commits)")

---

Tags

i18nparserhandlebarspoEditxgettextgettext.jspo2json

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wisembly-jsgettext/health.svg)

```
[![Health](https://phpackages.com/badges/wisembly-jsgettext/health.svg)](https://phpackages.com/packages/wisembly-jsgettext)
```

###  Alternatives

[wisembly/xgettext

Javascript poEdit parser written in PHP

1619.4k](/packages/wisembly-xgettext)[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k724.1M827](/packages/symfony-string)[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[gettext/gettext

PHP gettext manager

70530.2M102](/packages/gettext-gettext)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[jrmajor/fluent

Fluent localization system for PHP

2716.9k5](/packages/jrmajor-fluent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
