Giter Site home page Giter Site logo

php-form-builder's Introduction

Hi there, I'm Daniel! ๐Ÿ‘‹

I'm currently working as senior software engineer for Verint Systems in Dresden using javascript / Node.js and Vue.js to build awesome web apps.

๐Ÿ“ซ How to reach me:

php-form-builder's People

Contributors

dantodev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

josephjlee

php-form-builder's Issues

add option() shortcut

  • ->options()->get($name, $default) to ->getOption($name, $default)
  • ->options()->set($name, $value) to ->setOption($name, $value)

Refactoring for 4.0

For 4.0 there will be refactoring to implement an AbstractField as base for Field. FieldSet will be replaced by MapField and with #8 ther will be also CollectionField

Update functions to access FieldSet children

  • $fieldset->setField("email", $field) to $fieldset->field("email", $field)
  • $fieldset->getField("email") to $fieldset->field("email")
  • $fieldset->removeField("email") to $fieldset->field("email")->remove()
  • $fieldset->setValidator("email", $validator) to $fieldset->field("email")->validator($validator)
  • $fieldset->getValidator("email") to $fieldset->field("email")->validator()
  • $fieldset->getValue("email") to $fieldset->field("email")->value()
  • $fieldset->getFieldSet("address") to $fieldset->fieldSet("address")
  • $fieldset->setFieldSet("address", $address) to $fieldset->fieldSet("address" ,$address)
    and so on...

Use PHPUnit ^6.3

since this package only supports php >= 7.1.0, we can use the newest release of PHPUnit.

add one-to-many Field/FieldSet

There need to be a way to define one-to-many Fields/FieldSets.

Example:

A Form need to handle the input of siblings. json data would look like this:

{
  "siblings": [
    {
      "gender": 1,
      "name": "Chris",
      "age": 22
    },{
      "gender": 1,
      "name": "Sally",
      "age": 12
    },{
      "gender": 2,
      "name": "Peter",
      "age": 17
    }
]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.