{"id":28635430,"url":"https://github.com/dmstr/yii2-json-editor","last_synced_at":"2026-04-24T11:13:16.942Z","repository":{"id":29863635,"uuid":"123000721","full_name":"dmstr/yii2-json-editor","owner":"dmstr","description":"Yii2 wrapper for \"json-editor/json-editor\" (is a fork of \"jdorn/json-editor\").","archived":false,"fork":false,"pushed_at":"2024-09-25T10:42:16.000Z","size":489,"stargazers_count":9,"open_issues_count":2,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-12T07:20:02.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T17:00:47.000Z","updated_at":"2025-02-24T15:32:07.000Z","dependencies_parsed_at":"2024-06-18T21:26:01.758Z","dependency_job_id":"0c757bc1-26e9-4cca-8f73-88c41cecac4f","html_url":"https://github.com/dmstr/yii2-json-editor","commit_stats":{"total_commits":77,"total_committers":11,"mean_commits":7.0,"dds":0.7272727272727273,"last_synced_commit":"9aa5d08063029ebd9c255a007c165b1ba4e16fc7"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/dmstr/yii2-json-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-json-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-json-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-json-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-json-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmstr","download_url":"https://codeload.github.com/dmstr/yii2-json-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-json-editor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509474,"owners_count":22868837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-12T17:10:14.384Z","updated_at":"2026-04-24T11:13:11.918Z","avatar_url":"https://github.com/dmstr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-json-editor\n\nYii2 wrapper for \"[json-editor/json-editor](https://github.com/json-editor/json-editor)\" (fork of \"[jdorn/json-editor](https://github.com/jdorn/json-editor)\").\n\n## Configuration\n\nIf you want to use additional tested plugins, such as *CKEditor*, *selectize* or *filefly* you can include the following lines in your view\n\n```\nJsonEditorPluginsAsset::register($this);\n```\n\nSee the `suggest` section of [`composer.json`](https://github.com/dmstr/yii2-json-editor/blob/master/composer.json) for information about recommended composer packages.\n\n## Changelog\n\n### 1.3\n\n- updated `json-editor` to `^2.3.5` (affects custom editor `extends` usage, [see commit](https://github.com/dmstr/yii2-json-editor/commit/731dd3dce28887fabd536f5c5ba37218ba243c73))\n\n### 1.2\n\nSee `git log`\n\n## Usage\n\n```php\n$example_schema = [\n    'title' =\u003e 'Example JSON form',\n    'type' =\u003e 'object',\n    'properties' =\u003e [\n        'name' =\u003e [\n            'title' =\u003e 'Full Name',\n            'type' =\u003e 'string',\n            'minLength' =\u003e 5\n        ],\n        'date' =\u003e [\n            'title' =\u003e 'Date',\n            'type' =\u003e 'string',\n            'format' =\u003e 'date',\n        ],\n    ],\n];\n```\n\n```php\n$form-\u003efield($model, 'example_field')-\u003ewidget(JsonEditorWidget::className(), [\n    'schema' =\u003e $example_schema,\n    'clientOptions' =\u003e [\n        'theme' =\u003e 'bootstrap3',\n        'disable_collapse' =\u003e true,\n        'disable_edit_json' =\u003e true,\n        'disable_properties' =\u003e true,\n        'no_additional_properties' =\u003e true,\n    ],\n]);\n```\n\n## Plugin Bundles\n\nThis packages contains optional asset bundles for specialized plugings that can be rgistered when activated in the\nconfiguration array.\n\n- CKEditorAsset (active per default for backward compatibility reasons)\n- JoditAsset\n- SceditorAsset\n- SimpleMDEAsset\n\n```php\n$form-\u003efield($model, 'example_field')-\u003ewidget(JsonEditorWidget::className(), [\n    'schema' =\u003e $example_schema,\n    'registerCKEditorAsset' =\u003e true, // CKEditorAsset will be registered (default true)\n    'registerJoditAsset' =\u003e true, // JoditAsset will be registered (default false)\n    'registerSceditorAsset' =\u003e true, // SceditorAsset will be registered (default false)\n    'registerSimpleMDEAsset' =\u003e true, // SimpleMDEAsset will be registered (default false)\n    'clientOptions' =\u003e [\n        'theme' =\u003e 'bootstrap3',\n    ]\n]);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-json-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmstr%2Fyii2-json-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-json-editor/lists"}