Download the PHP package oposs/silverstripe-structured-data without Composer
On this page you can find all versions of the php package oposs/silverstripe-structured-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oposs/silverstripe-structured-data
More information about oposs/silverstripe-structured-data
Files in oposs/silverstripe-structured-data
Package silverstripe-structured-data
Short Description Create, manage and validate structured yaml/json formatted text data
License mit
Homepage https://oetiker.ch
Informations about the package silverstripe-structured-data
Silverstripe structured data module
Create, manage and validate structured yaml/json formatted text data and make it available through graphQL
Installation
Install through composer: composer require oposs/silverstripe-structured-data
.
To enable the graphQL type, add the following lines to your app/_config/graphql.yml
:
If you just need a form field which can be validated against a JSON schema, you may want to disable the admin backend:
Permissions
Global permissions provided by this module:
STRUCTURED_DATA_VIEW
: Ability to view the Structured Data Module and stored data and schemasSTRUCTURED_DATA_ADMIN
: Users holding this permission can edit/create/delete all data and schemas
Fine-grained control over editing access is possible by defining allowed groups for each data object individually.
Usage
Besides the possibility to access the data via graphQL this module also provides a specialized StructuredDataField
which can be
setup to validate it's input against a schema:
GraphQL example
All versions of silverstripe-structured-data with dependencies
silverstripe/cms Version ^4
silverstripe/framework Version ^4
silverstripe/graphql Version ^4.0.0
opis/json-schema Version ^2.2