Formularium
This is an open source general frontend generator and backend validator for PHP. It hosts a number of generators for different CSS frameworks, as well as validators. The main feature is that it provides high level data types, allowing you to specify exactly what you expect of each field in a unified way for validation and form generation. Your fields are not strings, stop treating them as such.
Forms are generated from a simple structure, which can be serialized as JSON. It’s easy to create new datatypes, either from zero or extending the base types provided. The generated code can be used as is or customized with fine tuning for those pesky cases that no tool ever gets right.
Check:
- getting started
- kitchen sink demo
- a basic hello world example in pure PHP
- Modelarium, a full backend/frontend scaffolding generator for PHP/Laravel.
Same code, different frontend frameworks
Documentation
- getting started: how to declare your models
- how to create your own datatype
- how to create your own validators
- how to create your own renderables
- how to create your own elements
- how to add support to your own frontend framework
- how to add support to your own code generator targets
Reference
- all validators and their parameters
- all datatypes
- elements and their parameters: