PHPackages                             qligier/tjson-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. qligier/tjson-parser

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

qligier/tjson-parser
====================

A PHP parser for TJSON format

0.1.1(8y ago)15GPL-3.0PHPPHP &gt;=7.0.0

Since Oct 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/qligier/tjson-parser)[ Packagist](https://packagist.org/packages/qligier/tjson-parser)[ RSS](/packages/qligier-tjson-parser/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

TJSON Parser
============

[](#tjson-parser)

**A TJSON parser written in PHP, using [Phlexy](https://github.com/nikic/Phlexy) as JSON lexer.**

[![](https://camo.githubusercontent.com/d27e0f1af5ddb3e9144f662f0e1239e38f013ccb59770fb7276bd7f58e73ff78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f716c69676965722f746a736f6e2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://github.com/qligier/tjson-parser)[![](https://camo.githubusercontent.com/7ca3ceb35c158478293d7bb75198958ae612e932ab10fa54c5916af4f13f562d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f716c69676965722f746a736f6e2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/qligier/tjson-parser)[![StyleCI Shield](https://camo.githubusercontent.com/1728dd2325622921281ea7d58572c9d4e19b0e2194517b64e525ee73db54fb28/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130383234383930352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/108248905)[![](https://camo.githubusercontent.com/284abc2457e43105474084b07c8e4b43d2ec2e7ce75b2a12aa02f3c57cd13221/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d626c75652e7376673f7374796c653d666c61742d737175617265)](https://www.gnu.org/licenses/gpl-3.0)

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

[](#requirements)

- PHP 7.0 at minimum is needed;
- The GMP extension.

Quick start
-----------

[](#quick-start)

### Installation

[](#installation)

Install the library with [composer](https://getcomposer.org):

`composer require qligier/tjson-parser`

### Usage

[](#usage)

```
$parser = new Kentin\TJSON\Parser;
$tjson = '{"message:u":"Hello World!"}';

var_dump($parser->parse($tjson));
/*
array(1) {
  'message' =>
  string(12) "Hello World!"
}
*/
```

### Data mapping

[](#data-mapping)

- *Boolean* values are returned as boolean;
- *Binary* values are decoded and returned as string;
- *FloatingPoint* values are returned as float;
- *Integer* values are returned as *GMP* instance;
- *UnicodeString* values are returned as string;
- *Timestamp* values are returned as *DateTime* instance;
- *Array* values are returned as indexed array;
- *Object* values are returned as associative array;
- *Set* values are returned as indexed array.

Compliance
----------

[](#compliance)

This library tries to be fully compliant with the current draft-tjson-spec (April 15, 2017). Nonetheless, the following non-compliances are not excluded:

- The library accepts various formatting for `FloatingPoint` and `Integer` values that [could be forbidden](https://github.com/tjson/tjson-spec/issues/53) by the spec.

Development
-----------

[](#development)

To check the library with [Psalm](https://github.com/vimeo/psalm) (a static analysis tool for finding errors):

```
./vendor/bin/psalm

```

To execute the unit tests with [PHPUnit](https://github.com/sebastianbergmann/phpunit) (an unit testing framework):

```
./vendor/bin/phpunit

```

To check the library with [Infection](https://github.com/infection/infection) (a mutation testing framework):

```
./vendor/bin/infection --min-msi=100 --min-covered-msi=100

```

To check and fix the coding style with [PHP Coding Standards Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)(a tool to automatically fix PHP coding standards issues):

```
./vendor/bin/php-cs-fixer fix . --dry-run --diff
./vendor/bin/php-cs-fixer fix .

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3216d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3299399?v=4)[Quentin Ligier](/maintainers/qligier)[@qligier](https://github.com/qligier)

---

Top Contributors

[![qligier](https://avatars.githubusercontent.com/u/3299399?v=4)](https://github.com/qligier "qligier (18 commits)")

---

Tags

jsonparserphptjson

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/qligier-tjson-parser/health.svg)

```
[![Health](https://phpackages.com/badges/qligier-tjson-parser/health.svg)](https://phpackages.com/packages/qligier-tjson-parser)
```

###  Alternatives

[mwgg/airports

A JSON collection of ~29k entries with basic information about nearly every airport and landing strip in the world

7683.4k](/packages/mwgg-airports)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9845.4k](/packages/sauladam-shipment-tracker)[pimcore/search-query-parser

Parses a simplified SQL-like query string into a syntax tree which can be used to build search queries

14567.0k1](/packages/pimcore-search-query-parser)[glauberportella/cnab-layouts-parser

Parser de arquivos de configuração CNAB gerados no projeto https://github.com/glauberportella/cnab-layouts

2154.5k](/packages/glauberportella-cnab-layouts-parser)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.4k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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