PHPackages                             mabasic/phel-json - 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. mabasic/phel-json

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

mabasic/phel-json
=================

Library for converting Phel datastructures to and from JSON.

0.5.0(4y ago)8602MITPHP

Since Mar 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mabasic/phel-json)[ Packagist](https://packagist.org/packages/mabasic/phel-json)[ Patreon](https://www.patreon.com/laravelista)[ RSS](/packages/mabasic-phel-json/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

Phel-json
=========

[](#phel-json)

Phel library for converting [Phel](https://phel-lang.org/) datastructures to and from JSON.

[![Become a Patron](https://camo.githubusercontent.com/16fde1abb7601eba23de38f592bc54e3a7d10da24ac58db594d7fab32d449d46/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4265636f6d65253230612d506174726f6e2d6639363835342e7376673f7374796c653d666f722d7468652d6261646765)](https://www.patreon.com/laravelista)

Overview
--------

[](#overview)

This Phel library is a wrapper library around PHP `json_encode` and `json_decode` functions.

It converts Phel datastructures and basic types to a format that PHP understands before calling `(php/json_encode)`.

It generates valid Phel datastructures (map, vector) from given JSON strings using `(php/json_decode)`.

Installation
------------

[](#installation)

From the command line:

```
composer require mabasic/phel-json
```

Usage
-----

[](#usage)

This Phel library has two public method:

- `(json/encode value {:depth 512 :flags 0})`
- `(json/decode json {:depth 512 :flags 0})`

```
(ns your\namespace
    (:require mabasic\json\json))

(def result (json/encode {:name "Phel"  :type "lisp"}))

# result
# {"name": "Phel", "type": "lisp"}

(println (json/decode result))

# output
# {:name "Phel"  :type "Lisp"}

```

For developers
--------------

[](#for-developers)

```
composer install
composer test

```

Sponsors &amp; Backers
----------------------

[](#sponsors--backers)

I would like to extend my thanks to the following sponsors &amp; backers for funding my open-source journey. If you are interested in becoming a sponsor or backer, please visit the [Backers page](https://mariobasic.com/backers).

Contributing
------------

[](#contributing)

Thank you for considering contributing to Phel-json! The contribution guide can be found [Here](https://mariobasic.com/contributing).

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the open-source community is welcoming to all, please review and abide by the [Code of Conduct](https://mariobasic.com/code-of-conduct).

License
-------

[](#license)

Phel-json is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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 ~89 days

Recently: every ~98 days

Total

6

Last Release

1482d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1839930?v=4)[mabasic](/maintainers/mabasic)[@mabasic](https://github.com/mabasic)

---

Top Contributors

[![mabasic](https://avatars.githubusercontent.com/u/1839930?v=4)](https://github.com/mabasic "mabasic (27 commits)")

---

Tags

hacktoberfestjsonlibraryphelphpjsonphel

### Embed Badge

![Health badge](/badges/mabasic-phel-json/health.svg)

```
[![Health](https://phpackages.com/badges/mabasic-phel-json/health.svg)](https://phpackages.com/packages/mabasic-phel-json)
```

###  Alternatives

[adhocore/json-fixer

Fix/repair truncated JSON data

51589.4k2](/packages/adhocore-json-fixer)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

64124.3k1](/packages/m1-vars)[blancks/fast-jsonpatch-php

Class designed to efficiently handle JSON Patch operations in accordance with the RFC 6902 specification

398.7k](/packages/blancks-fast-jsonpatch-php)[josantonius/json

PHP simple library for managing Json files.

1822.8k10](/packages/josantonius-json)

PHPackages © 2026

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