wisdompackage / openform
form to make a api form for other device. this only for laravel project !
1.0
2016-10-25 06:47 UTC
This package is not auto-updated.
Last update: 2026-03-09 22:25:47 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
##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]
}
]
}