{"id":16140790,"url":"https://github.com/cretueusebiu/vform","last_synced_at":"2025-05-15T23:07:58.928Z","repository":{"id":9523082,"uuid":"62437959","full_name":"cretueusebiu/vform","owner":"cretueusebiu","description":"Handle Laravel-Vue forms and validation with ease.","archived":false,"fork":false,"pushed_at":"2022-06-17T08:28:15.000Z","size":1061,"stargazers_count":604,"open_issues_count":12,"forks_count":120,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-12T16:14:51.046Z","etag":null,"topics":["form","laravel","vue","vue-components"],"latest_commit_sha":null,"homepage":"https://vform.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cretueusebiu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-02T06:48:06.000Z","updated_at":"2025-03-15T20:58:24.000Z","dependencies_parsed_at":"2022-07-14T07:10:26.796Z","dependency_job_id":null,"html_url":"https://github.com/cretueusebiu/vform","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretueusebiu%2Fvform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretueusebiu%2Fvform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretueusebiu%2Fvform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretueusebiu%2Fvform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cretueusebiu","download_url":"https://codeload.github.com/cretueusebiu/vform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436949,"owners_count":22070947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["form","laravel","vue","vue-components"],"created_at":"2024-10-09T23:53:49.635Z","updated_at":"2025-05-15T23:07:53.221Z","avatar_url":"https://github.com/cretueusebiu.png","language":"TypeScript","funding_links":[],"categories":["Components \u0026 Libraries","UI Utilities","UI Utilities [🔝](#readme)","TypeScript"],"sub_categories":["UI Utilities","Form"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/0IX1Otl.gif\" width=\"700\" alt=\"vform\"\u003e\n\u003c/p\u003e\n\n# Handle Laravel-Vue forms and validation with ease\n\n\u003cp\u003e\n  \u003ca href=\"https://npmjs.com/package/vform\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vform.svg?style=flat-square\" alt=\"Latest Version on NPM\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/cretueusebiu/vform/actions\"\u003e\u003cimg src=\"https://github.com/cretueusebiu/vform/workflows/test/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://npmjs.com/package/vform\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/vform.svg?style=flat-square\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n`vform` is a tiny library for Vue 2/3 to help with forms and validation when using Laravel as a back-end.\n\nIt provides a form instance to wrap your data in a convenient way and send it to your Laravel application via an HTTP request using `axios`.\n\n## Installation\n\n```bash\nnpm install axios vform\n```\n\n## Basic Usage\n\n```html\n\u003ctemplate\u003e\n  \u003cform @submit.prevent=\"login\" @keydown=\"form.onKeydown($event)\"\u003e\n    \u003cinput v-model=\"form.username\" type=\"text\" name=\"username\" placeholder=\"Username\"\u003e\n    \u003cdiv v-if=\"form.errors.has('username')\" v-html=\"form.errors.get('username')\" /\u003e\n\n    \u003cinput v-model=\"form.password\" type=\"password\" name=\"password\" placeholder=\"Password\"\u003e\n    \u003cdiv v-if=\"form.errors.has('password')\" v-html=\"form.errors.get('password')\" /\u003e\n\n    \u003cbutton type=\"submit\" :disabled=\"form.busy\"\u003e\n      Log In\n    \u003c/button\u003e\n  \u003c/form\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport Form from 'vform'\n\nexport default {\n  data: () =\u003e ({\n    form: new Form({\n      username: '',\n      password: ''\n    })\n  }),\n\n  methods: {\n    async login () {\n      const response = await this.form.post('/api/login')\n      // ...\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n__Laravel Controller:__\n\n```php\n\u003c?php\n\nclass LoginController extends Controller\n{\n    public function login(Request $request)\n    {\n        $this-\u003evalidate($request, [\n            'username' =\u003e 'required',\n            'password' =\u003e 'required',\n        ]);\n\n        // ...\n    }\n}\n```\n\n## Documentation\n\nYou'll find the documentation on [vform.vercel.app](https://vform.vercel.app).\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcretueusebiu%2Fvform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcretueusebiu%2Fvform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcretueusebiu%2Fvform/lists"}