JavaScript library to create the HTML of a form a LegalForms definition.
For use in a PHP project
composer install legalthings/legalform-js
You can load legalform.js using the rawgit CDN.
<script src="https://rawgit.com/legalthings/legalform-js/master/legalform.js"></script>
var formHtml = new LegalForm().build(definition);