Liform | PHP library to render Symfony Forms to JSON Schema | JSON Processing library

 by   Limenius PHP Version: v0.9.0 License: MIT

kandi X-RAY | Liform Summary

kandi X-RAY | Liform Summary

Liform is a PHP library typically used in Utilities, JSON Processing, Symfony applications. Liform has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Liform is a library for serializing Symfony Forms into [JSON schema] It can be used along with [liform-react] or [json-editor] or any other form generator based on json-schema. It is used by [LiformBundle] but can also be used as a stand-alone library. It is very annoying to maintain backend forms that match forms in a client technology, such as JavaScript. It is also annoying to maintain a documentation of such forms. And error prone. Liform generates a JSON schema representation, that serves as documentation and can be used to document, validate your data and, if you want, to generate forms using a generator.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Liform has a low active ecosystem.
              It has 129 star(s) with 75 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 14 open issues and 23 have been closed. On average issues are closed in 198 days. There are 8 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Liform is v0.9.0

            kandi-Quality Quality

              Liform has 0 bugs and 0 code smells.

            kandi-Security Security

              Liform has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Liform code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Liform is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Liform releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              Liform saves you 347 person hours of effort in developing the same functionality from scratch.
              It has 831 lines of code, 61 functions and 24 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Liform and discovered the below as its top functions. This is intended to give you an instant insight into Liform implemented functionality, and help decide if they suit your requirements.
            • Gets the form values .
            • Adds the minimumLength field to the schema .
            • Resolve the transformer for a form .
            • Transform multiple choices .
            • Recursively convert form data to array .
            • Guess the minimum length for a given constraint .
            • Add description .
            • Find data class for given form type
            • Add extension .
            • Configures the options .
            Get all kandi verified functions for this library.

            Liform Key Features

            No Key Features are available at this moment for Liform.

            Liform Examples and Code Snippets

            No Code Snippets are available at this moment for Liform.

            Community Discussions

            QUESTION

            How do I keep the state in the redux form after I unmounted the form
            Asked 2018-Feb-25 at 10:55

            I have a component which renders multiple forms based on schema, and the problem is that I will change the schema, I will rerender the forms, and the state cannot keep.

            The code looks like the following:

            ...

            ANSWER

            Answered 2018-Feb-25 at 10:55

            based on the redux-form api you can pass a prop destroyOnUnmount={false} to you form component. or in you reduxForm() initialization

            i have used it myself and it keeps the form state on re-render

            https://redux-form.com/7.2.3/docs/api/reduxform.md/#-code-destroyonunmount-boolean-code-optional-

            Source https://stackoverflow.com/questions/48956373

            QUESTION

            Get a JSON of my FormType schema
            Asked 2017-Sep-01 at 10:05

            I'm trying to generate a JSON of my form type in my controller using liform or liform-bundle but got the error :

            CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "getBlockPrefix" of class "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"." at /home/admin/Documents/displayce/code/vendor/limenius/liform/src/Limenius/Liform/FormUtil.php line 39

            the code in my controller :

            ...

            ANSWER

            Answered 2017-Sep-01 at 05:08

            add a getBlockPrefix to your formType and targeting type like this :

            Source https://stackoverflow.com/questions/45986323

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Liform

            Open a console, enter your project directory and execute the following command to download the latest stable version of this library:. This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Limenius/Liform.git

          • CLI

            gh repo clone Limenius/Liform

          • sshUrl

            git@github.com:Limenius/Liform.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular JSON Processing Libraries

            json

            by nlohmann

            fastjson

            by alibaba

            jq

            by stedolan

            gson

            by google

            normalizr

            by paularmstrong

            Try Top Libraries by Limenius

            ReactBundle

            by LimeniusPHP

            symfony-react-sandbox

            by LimeniusJavaScript

            ReactRenderer

            by LimeniusPHP

            liform-react

            by LimeniusJavaScript

            LiformBundle

            by LimeniusPHP