Download the PHP package cyve/json-schema-form-bundle without Composer

On this page you can find all versions of the php package cyve/json-schema-form-bundle. 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 json-schema-form-bundle

JsonSchemaFormBundle

Creates a Symfony form from a JSON schema.

Installation:

With Composer:

Usage

The form option data_schema MUST be an object representing a JSON schema.

Documentation

Form generation

JSON schema property Symfony FormType Form options
type: "*" and enum: [*] ChoiceType choices is set with the content of enum
type: "array" CollectionType allow_add, allow_delete and delete_empty are set to true. entry_type and entry_options are resolved from the items sub-schema
type: "object" SchemaType data_schema is set with the object sub-schema
type: "integer" IntegerType
type: "number" NumberType
type: "boolean" CheckboxType
type: "string" and format: "date-time" DateTimeType input_format is set to "c" (ISO 8601)
type: "string" and format: "date" DateType input_format is set to "Y-m-d"
type: "string" and format: "time" TimeType input_format is set to "H:i:s"
type: "string" and format: "email" EmailType
type: "string" and format: "uri" UrlType
type: "null" null

The form option label is set with JSON property title if defined
The form option help is set with JSON property description if defined
The form option empty_data is set with JSON property default if defined

Validation

To validate the form subject against the JSON schema, add the form option 'constraints' => [new Cyve\JsonSchemaFormBundle\Validator\Constraint\Schema($schema)] to the root form. The validator uses propertyPath to display the violation messages on the proper fields.
The JSON schema validation is made using justinrainbow/json-schema.
See the JSON schema specification


All versions of json-schema-form-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
justinrainbow/json-schema Version ^5.0
symfony/form Version ^4.0|^5.0
symfony/validator Version ^4.0|^5.0
symfony/options-resolver Version ^4.0|^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 cyve/json-schema-form-bundle contains the following files

Loading the files please wait ....