{"id":20506059,"url":"https://github.com/robinradic/laraval","last_synced_at":"2025-08-16T05:35:09.380Z","repository":{"id":58237098,"uuid":"44502843","full_name":"RobinRadic/laraval","owner":"RobinRadic","description":"Laravel 5 jQuery Validation. Full client side, full AJAX, hybrid and other modes. Bootstrap and other frameworks supported.","archived":false,"fork":false,"pushed_at":"2016-04-28T07:41:48.000Z","size":21301,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T00:41:29.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RobinRadic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-19T00:39:55.000Z","updated_at":"2022-12-02T05:07:37.000Z","dependencies_parsed_at":"2022-08-30T22:30:51.484Z","dependency_job_id":null,"html_url":"https://github.com/RobinRadic/laraval","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/RobinRadic/laraval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Flaraval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Flaraval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Flaraval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Flaraval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinRadic","download_url":"https://codeload.github.com/RobinRadic/laraval/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinRadic%2Flaraval/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270671286,"owners_count":24625742,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-15T19:53:58.236Z","updated_at":"2025-08-16T05:35:09.352Z","avatar_url":"https://github.com/RobinRadic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Laravel logo](http://laravel.com/assets/img/laravel-logo.png)  Laraval \n========================\n\nLaravel 5 jQuery form validation using Laravel's Validator rules. Client \u0026 Server(AJAX) validation strategies.\n\n[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://tldrlegal.com/license/mit-license)\n\n- You can use the `javascript` library stand-alone. The provided PHP library is optional.\n- Stand alone can **not** use the `database` validation rules.\n- Error messages can be imported straight from your `Application`'s language files. \n- The `Laraval` PHP library provides more then a few conveinence methods. It also provides the logic for `AJAX` validation, which enables *all* validation rule methods.\n- Depends on `jQuery` and [`jquery.validate`](http://jqueryvalidation.org) JS libraries.\n- Multimple demos (local, ajax, etc) provided using Bootstrap 3.\n \nThe package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.\n\n\n[**Documentation**](http://robin.radic.nl/laraval) \n\n[**Demonstration**](http://robin.radic.nl/laraval) \n\n\n\nQuick Impression\n-------------\n\n```\njquery.validate.laravel.min.js\nSize:           16.01 Kb\nGzip Size:      4.79 Kb\n```\n\n### Client side\n\n\nBy including the `jquery.validate.js` \u0026 `jquery.validate.laraval.js` you will be able to use Laravel's (5.x) validation rules like this:\n\n```html\n\u003cinput \n    name=\"user_email\" \n    type=\"email\" \n    data-laraval=\"required|email|not_in:admin@mysite.com,manager@mysite.com\"\n\u003e\n```\n\n### Local example\n```php\n$rules = [\n    'title'         =\u003e 'required|max:15|alpha_num',\n    'body'          =\u003e 'required|max:255|alpha_dash',\n    'between_dates' =\u003e 'after:1/1/2000|before:1/1/2010|date',\n    'user_email'    =\u003e 'required|email',\n    'url'           =\u003e 'required|url',\n    'is_admin'      =\u003e 'boolean',\n    'active'        =\u003e 'boolean'\n];\nreturn View::make('myview', [\n    'rules' =\u003e $rules\n]);\n```\nview:\n```html\n\u003cform method=\"POST\" action=\"{{ url('to-the-moon') }}\" \u003e\n    \u003c!-- You can still provide rules on the form fields, they will simply extend the form rules --\u003e\n    \u003cinput name=\"user_email\" data-laraval=\"not_in:admin@mysite.com,manager@mysite.com\" type=\"email\" \u003e\n\u003c/form\u003e\n{{ Laraval::local('#demo-form', $rules) }}\n```\n\n### AJAX example\n```php\nRoute::post('validate', function(Request $request){\n    $rules = [\n        'title'         =\u003e 'required|max:15|alpha_num',\n        'body'          =\u003e 'required|max:255|alpha_dash',\n        'between_dates' =\u003e 'after:1/1/2000|before:1/1/2010|date'\n    ]\n    return Laraval::make('ajax', $rules)-\u003evalidate($request);\n});\n```\nview:\n```html\n\u003cform id=\"demo-form\" method=\"POST\"\u003e\n    \u003cinput type=\"text\" name=\"title\"\u003e\n    \u003cinput type=\"text\" name=\"body\"\u003e\n    \u003cinput type=\"date\" name=\"between_dates\"\u003e\n\u003c/form\u003e\n{{ Laraval::ajax('#demo-form', [ 'url' =\u003e url('validate') ]) }}\n```\n\n\n### Copyright/License\nCopyright 2015 [Robin Radic](https://github.com/RobinRadic) - [MIT Licensed](http://radic.mit-license.org) \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinradic%2Flaraval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinradic%2Flaraval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinradic%2Flaraval/lists"}