wisdompackage/openform

form to make a api form for other device. this only for laravel project !

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Language:HTML

1.0 2016-10-25 06:47 UTC

This package is not auto-updated.

Last update: 2024-05-20 13:30:57 UTC


README

form to make a api form for other device. this only for laravel project !

##Requirements

##Installation in composer.json add

  "Wisdom\\Openform\\" : "vendor/wisdompackage/openform/src"

to "psr-4"

in config/app add

  Wisdom\Openform\OpenformServiceProvider::class,

to array provider

and then run

    $ composer require wisdompackage/openform

run

    $ php artisan vendor:publish
    $ php aritsan migrate

so now you can run a form package thought

www.yourdomain.com\form

##Usage Send your answer by http POST

type : json

example

    { "form_id" : 1 ,
        "answers" : [
            {"question_id" : 1,
              "type" : "text",
              "value" : "eiei"
            },
            {"question_id" : 2,
              "type" : "single",
              "value" : 2
            },
            {
              "question_id" : 3,
              "type" : "multiple",
              "values" : [1,2,3]
            }
        ]	
    }