From 04e88837337ef76188b36fc03373cc08d1f2426f Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Mon, 2 Oct 2023 16:39:33 -0500 Subject: [PATCH 1/2] Missing import for Context class in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index dcb4952..c635381 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ And the following UI JSON Schema refining the form generation process: Execute this PHP code: ```php use SchemaForms\Drupal\FormGeneratorDrupal; +use Shaper\Util\Context; $generator = new FormGeneratorDrupal(); $context = new Context(['ui_hints => $ui_schema_data]); $actual_form = $generator->transform($schema_data, $context); From c9aae766a471d081fad3627db95dc9d8711ce977 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Mon, 2 Oct 2023 17:16:39 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c635381..e99d1a1 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,16 @@ Schema forms is a project that aims to generate form structures for the differen Frameworks supported: - Drupal. +# Installation + +Generally this should be already required by the Drupal project that needs to use it. + +If you need to require this library independently, you can do so with the following command: + +``` +composer require e0ipso/schema-forms +``` + # Usage Given the following JSON Schema defining the different properties of a user object. ```json