{"id":20378294,"url":"https://github.com/botto/parsley_js","last_synced_at":"2026-01-27T06:02:13.155Z","repository":{"id":13005720,"uuid":"15685027","full_name":"botto/parsley_js","owner":"botto","description":"Drupal module to integrate with parsley.js","archived":false,"fork":false,"pushed_at":"2014-12-06T17:11:40.000Z","size":348,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"7.x-1.x","last_synced_at":"2025-06-04T10:02:06.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"zammad/zammad.org","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/botto.png","metadata":{"files":{"readme":"README.txt","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-01-06T21:03:59.000Z","updated_at":"2014-12-06T16:11:04.000Z","dependencies_parsed_at":"2022-09-18T05:35:43.703Z","dependency_job_id":null,"html_url":"https://github.com/botto/parsley_js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/botto/parsley_js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fparsley_js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fparsley_js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fparsley_js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fparsley_js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botto","download_url":"https://codeload.github.com/botto/parsley_js/tar.gz/refs/heads/7.x-1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fparsley_js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28805336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T05:43:52.625Z","status":"ssl_error","status_checked_at":"2026-01-27T05:43:48.957Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-11-15T01:49:49.028Z","updated_at":"2026-01-27T06:02:13.141Z","avatar_url":"https://github.com/botto.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#parsley_js\n\nDrupal module that provides integration with the client side validation library\nparsley.js.\nCurrently this module only integrates on the FAPI layer.\n\nAt it's core it's simply injects the correct attributes into the relevant FAPI\nfield using hook_form_alter\nIt expects the same syntax as FAPI validation module using the rules attribute.\n\n\n##Requirements\n\n1. Libraries module\n2. jQuery Update (Tested with jQuery 1.6, mileage may vary with earlier\nversions of jQuery)\n3. Parsley.js 1.2.4\n\n\n##Installation\n\n1. Download the parsley.js library\nhttps://github.com/guillaumepotier/Parsley.js/archive/1.2.4.tar.gz to your\nlibraries location (usually sites/all/libraries)\n2. Expand the contents of the archive in to parsleyjs, so that the folder\nstructure reads libraries/parsleyjs and parsley.js is directly under parsleyjs\nfolder\n3. Enable the module under admin/modules\n4. Set jQuery update to 1.9 or later under\nadmin/config/development/jquery_update\n\n##Configuration\nCurrently there are no configuration options.\n\n##Usage\n\nTo enable a form to be validated, simply set #parsley_js in the form array\nto true.\n\n```php\n$form['#parsley_js'] = TRUE;\n```\n\nSet the #rules key on each field you want validated\n\n```php\n$form['my-field'] = array(\n '#title' =\u003e t('My Field'),\n '#description' =\u003e t(\"It's my field, only I get to fill it in\"),\n '#required' =\u003e TRUE,\n '#rules' =\u003e array(\n   'length[3,10]',\n   'email',\n ),\n;\n```\n\n###Rules\nCurrently only the following rules are implemented.\nWhere possible the rule names will follow the FAPI validation name, otherwise it\nwill have the same rule name as the parsley.js documentation\n* notblank\n* email\n* url\n* urlstrict\n* digit\n* numeric\n* alpha_numeric\n* date_iso\n* phone\n* length\n* range\n\nDetails of these rules can be found at\nhttps://parsleyjs.github.io/Parsley-1.x/documentation.html#validators\n\n####Exceptions\n\n**dateIso**:\nParsley.js calls it dateIso, use date_iso instead to keep consistency\n\n**Length**:\nThe length rules supports both specific length, min length and max length.\nA set length is indicated bu ```length[2,9]``` meaning any string\nbetween 2 and 9 characters long\nA min length is indicated by ```length[3, *]```\nA max length is indicated by ```length[*, 6]```\n\n**Range**:\nThe range follows the same syntax, except this checks the numeric length of the \nvalue. ```range[3, 8]``` validates the input is between 3 and 8\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotto%2Fparsley_js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotto%2Fparsley_js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotto%2Fparsley_js/lists"}