PHPackages                             becker-oss/json-styler - 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. becker-oss/json-styler

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

becker-oss/json-styler
======================

Component to properly style Json Strings.

1.0.3(1y ago)17MITPHPPHP ^8.3

Since Mar 28Pushed 1y agoCompare

[ Source](https://github.com/becker-oss/json-styler)[ Packagist](https://packagist.org/packages/becker-oss/json-styler)[ RSS](/packages/becker-oss-json-styler/feed)WikiDiscussions develop Synced 1mo ago

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

Laravel Json Styler
===================

[](#laravel-json-styler)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

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

[](#requirements)

- PHP 8.3+
- Laravel 12
- TailwindCSS

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

[](#installation)

```
composer require becker-oss/json-styler
```

Using the Component
-------------------

[](#using-the-component)

To use the component you have to pass the json as string to:

```

```

If no theme is given , it will use the default theme of the config:

```
'default' => [
        'braces' => 'darkorange',
        'brackets' => 'darkgreen',
        'keys' => 'purple',
        'values' => 'darkgreen',
        'background'=> 'bg-white',
        'custom_keywords' => [
            'ERROR' => 'red',
            'issues' => 'red',
        ],
    ],

```

if the given theme is incomplete, it will merge the missing entrys from an duplicate entry of the default theme (hardcoded).

Customizing
-----------

[](#customizing)

Standard options are

- dark
- default (light mode)

To further customize themes and adding custom keywords:

```
php artisan vendor:publish --tag=laravelJsonStyler-config
```

Edit the Config file to your needs:

```
 'default' => [
        'braces' => 'darkorange',
        'brackets' => 'darkgreen',
        'keys' => 'purple',
        'values' => 'darkgreen',
        'background'=> 'bg-white',
        'custom_keywords' => [
            'ERROR' => 'red',
            'issues' => 'red',
        ],
    ],

    'adminTool' => [
        'braces' => '#ff9800',
        'brackets' => '#4caf50',
        'keys' => '#9c27b0',
        'values' => '#8bc34a',
        'background'=> 'bg-gray',
        'custom_keywords' => [
            'ERROR' => '#f44336',
            'issues' => '#e91e63',
        ],
    ],

```

You can now pass your theme to the component like this :

```

```

or use a variable for changing themes like this :

```

```

Finally
-------

[](#finally)

You can now customize the coloroutput of the Json Styler component and integrate it into your code.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~4 days

Total

4

Last Release

404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd6a972c4385e305de335d7a7d07796e8bbc5aefac9e751b755578282ca36487?d=identicon)[spresnac-ltb](/maintainers/spresnac-ltb)

---

Top Contributors

[![cspohn-ltb](https://avatars.githubusercontent.com/u/206660954?v=4)](https://github.com/cspohn-ltb "cspohn-ltb (6 commits)")[![stappen-ltb](https://avatars.githubusercontent.com/u/204988148?v=4)](https://github.com/stappen-ltb "stappen-ltb (2 commits)")

---

Tags

phpjsonlaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/becker-oss-json-styler/health.svg)

```
[![Health](https://phpackages.com/badges/becker-oss-json-styler/health.svg)](https://phpackages.com/packages/becker-oss-json-styler)
```

###  Alternatives

[ajthinking/archetype

Programmatically edit PHP and Laravel files.

2723.4M12](/packages/ajthinking-archetype)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[ernysans/laraworld

Countries, Languages and Time Zones Package for Laravel 5.\*

1755.7k](/packages/ernysans-laraworld)

PHPackages © 2026

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