{"id":13733438,"url":"https://github.com/invaders-xx/filament-jsoneditor","last_synced_at":"2026-01-11T16:51:20.384Z","repository":{"id":37423111,"uuid":"475036432","full_name":"invaders-xx/filament-jsoneditor","owner":"invaders-xx","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-10T10:13:29.000Z","size":407,"stargazers_count":24,"open_issues_count":2,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T16:53:29.654Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invaders-xx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-03-28T14:21:55.000Z","updated_at":"2025-03-18T14:52:27.000Z","dependencies_parsed_at":"2023-11-13T13:28:56.178Z","dependency_job_id":"743632c7-3299-457f-8c28-fd66f5b7965d","html_url":"https://github.com/invaders-xx/filament-jsoneditor","commit_stats":{"total_commits":42,"total_committers":5,"mean_commits":8.4,"dds":0.5476190476190477,"last_synced_commit":"70b29f33252819430e97084efc5e1a1ec3b0dd30"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invaders-xx%2Ffilament-jsoneditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invaders-xx%2Ffilament-jsoneditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invaders-xx%2Ffilament-jsoneditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invaders-xx%2Ffilament-jsoneditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invaders-xx","download_url":"https://codeload.github.com/invaders-xx/filament-jsoneditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253036586,"owners_count":21844240,"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":"2024-08-03T03:00:43.048Z","updated_at":"2026-01-11T16:51:20.356Z","avatar_url":"https://github.com/invaders-xx.png","language":"PHP","funding_links":[],"categories":["Fields"],"sub_categories":[],"readme":"\n# JSON Editor form's input for the great Filament package\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/invaders-xx/filament-jsoneditor.svg?style=flat-square)](https://packagist.org/packages/invaders-xx/filament-jsoneditor)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/invaders-xx/filament-jsoneditor/run-tests?label=tests)](https://github.com/invaders-xx/filament-jsoneditor/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/invaders-xx/filament-jsoneditor/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/invaders-xx/filament-jsoneditor/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/invaders-xx/filament-jsoneditor.svg?style=flat-square)](https://packagist.org/packages/invaders-xx/filament-jsoneditor)\n\nIf you need to have a JSON Editor field within your form. You have it !\n\n\u003cimg width=\"1863\" alt=\"image\" src=\"https://user-images.githubusercontent.com/604907/160436321-9ff47bb8-28a2-45af-98fe-a57802236178.png\"\u003e\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require invaders-xx/filament-jsoneditor\n```\n\n```bash\nphp artisan vendor:publish --tag=filament-jsoneditor-img\n```\n\nThis command will publish the jsoneditor button's img\n\n## Required format\nThe Eloquent Model data must be cast to array or json\n\nExample:\n\n```php\nclass MyModel extends Model\n{\n    protected $casts = [\n        'my_field' =\u003e 'array',\n        'another_field' =\u003e 'encrypted:json',\n    ];\n}\n```\n\n## Usage\n\n```php\n[\n    \\InvadersXX\\FilamentJsoneditor\\Forms\\JSONEditor::make('editor');\n]\n```\n## Options\n```php\n[\n    \\InvadersXX\\FilamentJsoneditor\\Forms\\JSONEditor::make('editor')\n        -\u003eheight(500) // Set height to 500px, default is 300\n        -\u003emodes(['code', 'form', 'text', 'tree', 'view', 'preview']); // default is ['code', 'form', 'text', 'tree', 'view', 'preview']\n]\n```\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [David Vincent](https://github.com/invaders-xx)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvaders-xx%2Ffilament-jsoneditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvaders-xx%2Ffilament-jsoneditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvaders-xx%2Ffilament-jsoneditor/lists"}