PHPackages                             litlife/json-to-bbcode - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. litlife/json-to-bbcode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

litlife/json-to-bbcode
======================

Json-to-bbcode is a library written in PHP for converting ProseMirror json to BBCode

1.2.0(4y ago)023MITPHPPHP ^7.3

Since Jul 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/litlife/json-to-bbcode)[ Packagist](https://packagist.org/packages/litlife/json-to-bbcode)[ RSS](/packages/litlife-json-to-bbcode/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

ProseMirror Json to BBcode
==========================

[](#prosemirror-json-to-bbcode)

Json-to-bbcode is a library written in PHP for converting ProseMirror json to BBCode

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install json-to-bbcode.

```
composer require litlife/json-to-bbcode
```

Usage
-----

[](#usage)

In this example, you can see how to convert json to a string of bb code

```
use Litlife\JsonToBBCode\Renderer;

$jsonString = render($jsonArray);

echo ($bbCodeString);
```

Output:

`[b]Example text using strong[/b]`

Adding a mark
-------------

[](#adding-a-mark)

```
use Litlife\JsonToBBCode\Marks\Italic;

$bbCodeString = (new Renderer())->addMark(Italic::class)->render($jsonArray);
```

Adding a node
-------------

[](#adding-a-node)

```
use Litlife\JsonToBBCode\Nodes\Blockquote;

$bbCodeString = (new Renderer())->addNode(Blockquote::class)->render($jsonArray);
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

Total

5

Last Release

1684d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6352d87faeaa45b2da5e0872605cfd08d9a25851f0a54424399c58b8a4f1a14b?d=identicon)[litlife](/maintainers/litlife)

---

Top Contributors

[![litlife](https://avatars.githubusercontent.com/u/22077092?v=4)](https://github.com/litlife "litlife (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/litlife-json-to-bbcode/health.svg)

```
[![Health](https://phpackages.com/badges/litlife-json-to-bbcode/health.svg)](https://phpackages.com/packages/litlife-json-to-bbcode)
```

###  Alternatives

[astrotomic/laravel-unavatar

Laravel integration of unavatar service.

297.9k](/packages/astrotomic-laravel-unavatar)[diego-ninja/sentinel

A content moderation and sentiment analysis library for Laravel 10+

384.3k](/packages/diego-ninja-sentinel)[olegkoval/php-user-info

Get information about user which visited page of your website

291.8k](/packages/olegkoval-php-user-info)[tatter/workflows

Job task control through dynamic workflows, for CodeIgniter 4

221.6k](/packages/tatter-workflows)

PHPackages © 2026

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