{"id":15937534,"url":"https://github.com/zofe/dataform","last_synced_at":"2026-04-23T03:32:57.446Z","repository":{"id":22616814,"uuid":"25959187","full_name":"zofe/dataform","owner":"zofe","description":null,"archived":false,"fork":false,"pushed_at":"2014-11-13T09:58:19.000Z","size":260,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T18:25:22.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zofe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T07:12:58.000Z","updated_at":"2014-10-30T07:18:40.000Z","dependencies_parsed_at":"2022-08-21T08:30:42.501Z","dependency_job_id":null,"html_url":"https://github.com/zofe/dataform","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/zofe/dataform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fdataform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fdataform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fdataform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fdataform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zofe","download_url":"https://codeload.github.com/zofe/dataform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fdataform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32165029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T05:03:25.755Z","updated_at":"2026-04-23T03:32:57.432Z","avatar_url":"https://github.com/zofe.png","language":"PHP","readme":"DataForm\n============\n\n\nDataForm is a form builder\nBy default it produce Bootstrap 3 compatible output. \n\nAt this moment is built on [Deficient](https://github.com/zofe/deficient) (a subset of laravel components including eloquent and blade, plus [burp](https://github.com/zofe/burp) router).\nThe plan is to make it compatible also with laravel, as standard package.\n\nIt can   \n\n- Make a Form\n- Bind the form with an eloquent model \n\n\n## usage\n\nas form helper:\n \n\n```php\n    $form = DataForm::create();\n    $form-\u003etext('title','Title'); //field name, label\n    $form-\u003etext('body','Body')-\u003erule('required'); //validator \n    $form-\u003esubmit('Save');\n    $form-\u003esaved(function() use ($form)\n    {\n        //do something with post values, then..\n        \n        $form-\u003emessage(\"ok record saved\");\n        $form-\u003elinkRoute(\"home\",\"Back to the Form\");\n    });\n    ...\n```\nform with model binding (preset values and store new values on save):\n\n```php\n    $form = DataForm::source(User::find(1));\n    $form-\u003etext('title','Title'); //field name, label\n    $form-\u003etextarea('body','Body')-\u003erule('required'); //validation\n    $form-\u003echeckbox('public','Public');\n    $form-\u003eselect('role', 'Role')-\u003eoptions(Role::lists(\"name\", \"id\"));\n    $form-\u003esubmit('Save');\n    $form-\u003esaved(function() use ($form)\n    {\n        $form-\u003emessage(\"ok record saved\");\n        $form-\u003elinkRoute(\"home\",\"Back to the Form\");\n    });\n    ...\n\n```\nfor field \"rules\" you can reference to laravel validation\n\nnote that @ this time: \n\n  - there are only text,textarea,select and checkbox fields\n  - model-binding still not support relations\n \n\n## why not starting from laravel?\n\nWe choose \"deficient\" (a subset of laravel components) \nto be more isoladed, and give the ability to use it stand-alone or embedded in any other project.  \n\n## Installation\n\ninstall via composer \n\n    {\n        \"require\": {\n            \"zofe/dataform\": \"dev-master\"\n        }\n    }\n    \n## Setup\n\nTo configure database, views, you must reference to [Deficient](https://github.com/zofe/deficient)  \nThis is a small how-to \n\n - create minimum folders / configuration files\n - deploy dataform views\n - deploy a front controller and a sample (optional, but suggested)\n\n```\n  $ php vendor/zofe/deficient/deficient setup:folders\n  $ php vendor/zofe/dataform/dataform setup:views\n  $ php vendor/zofe/dataform/dataform setup:router\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzofe%2Fdataform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzofe%2Fdataform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzofe%2Fdataform/lists"}