PHPackages                             reg2005/oc-jsonable - 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. reg2005/oc-jsonable

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

reg2005/oc-jsonable
===================

This widget the alternative to a widget 'Repeater' allows to write data to jsonable field also as well as 'Repeater', but does not give the chance to do repetitions of fields. I.e. the array will look so:

1.0.1(9y ago)62512[1 issues](https://github.com/reg2005/oc-jsonable/issues)MITPHPPHP &gt;=5.5.9

Since Jul 10Pushed 9y ago4 watchersCompare

[ Source](https://github.com/reg2005/oc-jsonable)[ Packagist](https://packagist.org/packages/reg2005/oc-jsonable)[ Docs](https://github.com/reg2005/oc-jsonable)[ RSS](/packages/reg2005-oc-jsonable/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Jsonable form widget for October CMS!
=====================================

[](#jsonable-form-widget-for-october-cms)

This widget the alternative to a widget [Repeater](http://octobercms.com/docs/backend/forms#widget-repeater) allows to write data to jsonable field also as well as "Repeater".

[![alt text](https://github.com/reg2005/oc-jsonable/raw/master/jsonable-field.jpg)](https://github.com/reg2005/oc-jsonable/blob/master/jsonable-field.jpg)

How to use:
===========

[](#how-to-use)

##### 0.1 Create a json or jsonb or text field in a database.

[](#01-create-a-json-or-jsonb-or-text-field-in-a-database)

##### 0.2 Add in model:

[](#02-add-in-model)

```
public $jsonable = ['config'];
```

##### 1. Just add into your plugin or project composer.json:

[](#1-just-add-into-your-plugin-or-project-composerjson)

```
{
    "require": {
        "reg2005/oc-jsonable": "1.0.*"
    }
}
```

##### 2. Go to your october project directory use terminal, and run command:

[](#2-go-to-your-october-project-directory-use-terminal-and-run-command)

> composer update

##### 3. Add to your Plugin.php this:

[](#3-add-to-your-pluginphp-this)

```
    public function registerFormWidgets()
    {
        return [
            'reg2005\Widgets\Jsonable' => [
                'label' => 'jsonable',
                'code'  => 'jsonable'
            ]
        ];
    }
```

ADD to your fields.yaml something like:

```
fields:
    config[customization]:
            label: 'extra'
            type: jsonable
            form:
                fields:
                    form_color:
                        label: 'Color'
                        oc.commentPosition: ''
                        span: left
                        type: colorpicker
                    background:
                        label: 'Background'
                        oc.commentPosition: ''
                        mode: image
                        useCaption: 0
                        thumbOptions:
                            mode: crop
                            extension: jpg
                        span: left
                        type: fileupload
                    time[mon]:
                        label: Monday
                        type: jsonable
                        span: left
                        form:
                            fields:
                                from:
                                    label: 'From'
                                    oc.commentPosition: ''
                                    span: left
                                    default: '09:00'
                                    type: datepicker
                                    format: 'H:i'
                                    mode: time
                                to:
                                    label: 'To'
                                    oc.commentPosition: ''
                                    span: right
                                    default: '18:00'
                                    format: 'H:i'
                                    type: datepicker
                                    mode: time
                    time[tue]:
                        label: Tuesday
                        type: jsonable
                        span: left
                        form:
                            fields:
                                from:
                                    label: 'From'
                                    oc.commentPosition: ''
                                    span: left
                                    default: '09:00'
                                    type: datepicker
                                    mode: time
                                to:
                                    label: 'To'
                                    oc.commentPosition: ''
                                    span: right
                                    default: '18:00'
                                    type: datepicker
                                    mode: time
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3642d ago

### Community

Maintainers

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

---

Tags

october cms

### Embed Badge

![Health badge](/badges/reg2005-oc-jsonable/health.svg)

```
[![Health](https://phpackages.com/badges/reg2005-oc-jsonable/health.svg)](https://phpackages.com/packages/reg2005-oc-jsonable)
```

###  Alternatives

[coduo/php-humanizer

Humanize values that are readable only for developers

1.7k837.7k21](/packages/coduo-php-humanizer)[daftspunk/laravel-config-writer

Laravel provider to be able to rewrite configuration

17651.1k1](/packages/daftspunk-laravel-config-writer)[amstaffix/pagination

Simple pagination

43292.7k6](/packages/amstaffix-pagination)

PHPackages © 2026

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