Download the PHP package gabrielesbaiz/nova-field-json without Composer

On this page you can find all versions of the php package gabrielesbaiz/nova-field-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-field-json

NovaField Json

Structured data in a JSON column for Laravel Nova — compose ordinary Nova fields into one column, or hand the whole column to the user as a tree, key/value, raw or repeatable-row editor.

Latest version Downloads Stars Sponsor

📖 Read the documentation →

Both fields end to end, every storage option, the full method tables, seven recipes, nine troubleshooting entries and the 2.0 upgrade path.

[!CAUTION] Upgrading from 1.x? Read UPGRADING.md first. NovaFieldJson is now Json, saveHistory() is gone, and three fixes change what gets written to your columns — Boolean now stores true instead of "1", groups merge instead of wiping, and uncast columns stop being corrupted. None of it is shimmed.

[!IMPORTANT] A ⭐ costs you nothing and helps other developers find this package. Sponsoring keeps it compatible with every new Nova release.

What it does

Nova already addresses into a JSON column: give the model an array cast and Text::make('Type', 'meta->type') reads and writes it. If your shape is fixed and small, use that — two fields, no package. This exists for the cases it does not cover:

The trade: Json is not a Nova Field but a composer — it rewrites each child's attribute, hijacks its fill callback and dissolves into the parent field list, so Nova renders the children and a handful of APIs that demand a Field will not accept a group. JsonEditor is a real field, and costs you an 83 KB (gzipped) asset bundle in return.

Requirements

Installation

The service provider is auto-discovered and registers the JsonEditor assets. There is no config file and nothing to publish to get started; the translations step is optional. Json ships no assets at all — if you only use the composer, nothing is loaded into Nova's bundle.

Full installation guide →

Documentation

Documentation site Everything: install, compose, edit, store.
Json Composing, nesting, sharing a column, forwarding, dependent fields, actions.
JsonEditor Tree, key/value, raw and repeatable modes, plus the keyboard map.
Storage options Casting, encryption, encoding flags, defaults, pruning, validation.
All methods Both fields, the shared storage options and the three enums.
Recipes Seven worked patterns, from tabbed settings to bulk updates from an action.
Troubleshooting The nine things that actually go wrong.
UPGRADING.md 2.0 is a clean break. Read it before you deploy.
CHANGELOG.md What changed, and when.

Testing

The PHP suite covers each 1.x defect as a named regression: uncast column corruption, the action-loop clearing flag, the Fluent cast probe, and child fields being denied their own fill pipeline. The JS suite covers the two contracts most likely to break silently on a Nova upgrade — the fill() payload shape and the nested validation key.

CI runs the PHP matrix (PHP 8.2–8.4 × Laravel 11–13 × lowest/stable), PHPStan, Pint, and an assets job that fails if dist/ is out of date.

Contributing

Thank you for considering contributing. The guide is in CONTRIBUTING.md. Nova is a paid package, so CI needs NOVA_USERNAME and NOVA_LICENSE_KEY secrets and cannot run on pull requests from forks — the guide explains what to run locally instead.

Security vulnerabilities

Values are never interpolated into SQL, each child field runs its own fill pipeline, malformed JSON is a validation error rather than a 500, and the editor renders values as text with no v-html anywhere. What this package does not do is authorise anything — the security page has the full list of properties.

Please review our security policy for reporting a vulnerability. Please do not open a public issue.

Credits

Written and maintained by Gabriele Sbaiz, with thanks to everyone who has contributed.

Support this package

I maintain this on evenings and weekends, alongside a full-time job writing insurance software. Keeping it green across new Nova majors is the unglamorous part, and it is what keeps this installable in your composer.json next year too.

If it is useful to you:

Sponsor on GitHub

Disclaimer

This package is provided as is. It writes to your database columns, and 2.0 deliberately changes what some of those writes contain — reading UPGRADING.md and backing up affected columns before deploying is the deploying application's responsibility, not this package's.

License

MIT. See LICENSE.md. The MIT licence's warranty disclaimer and limitation of liability apply in full, alongside the section above.


All versions of nova-field-json with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
laravel/nova Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gabrielesbaiz/nova-field-json contains the following files

Loading the files please wait ...