{"id":18929378,"url":"https://github.com/thecodingmachine/utils.common.validators","last_synced_at":"2025-09-10T16:41:50.585Z","repository":{"id":5619002,"uuid":"6826687","full_name":"thecodingmachine/utils.common.validators","owner":"thecodingmachine","description":"This package contains typical validators to be used in your application. A validator is a class that decides whether a string is valid or not. For instance, you could use an EmailValidator to validate that a string is a mail, etc...","archived":false,"fork":false,"pushed_at":"2014-06-04T16:32:51.000Z","size":236,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"3.1","last_synced_at":"2025-08-28T17:59:50.703Z","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/thecodingmachine.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":"2012-11-23T11:48:23.000Z","updated_at":"2014-06-04T16:32:49.000Z","dependencies_parsed_at":"2022-08-23T13:50:36.156Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/utils.common.validators","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thecodingmachine/utils.common.validators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.common.validators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.common.validators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.common.validators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.common.validators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/utils.common.validators/tar.gz/refs/heads/3.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.common.validators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274487735,"owners_count":25294585,"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-09-10T02:00:12.551Z","response_time":83,"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-08T11:32:15.712Z","updated_at":"2025-09-10T16:41:50.562Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mouf validators\n===============\n\nThis package contains typical validators to be used in your application.\nA validator is a class that decides whether a string is valid or not and implements the `ValidatorInterface`.\n\nThe `ValidatorInterface` is part of this package.\n\nFor instance, you could use an `EmailValidator` to validate that a string is a mail, etc...\n\nList of embedded validators\n---------------------------\n\n- `RequiredValidator`: validates a value is not empty\n- `NumericValidator`: validates a value is a number (optionnally an integer)\n- `EmailValidator`: validates an email address\n- `URLValidator`: validates a URL (starting with http://, https:// or ftp://)\n- `MaxMinRangeValidator`: validates a value is between 2 bounds\n- `MaxMinRangeLengthValidator`: validates a string length is between 2 bounds\n- `SiretValidator`: validates a value is a valid SIRET number (French company id)\n\nJavascript validation\n---------------------\n\nIf the validator implements the `JsValidatorInterface`, it provides the code to be run both in PHP and in Javascript.\nThis means you can use this validator to generate Javascript code that validates any value.\n\nI18n\n----\n\nThe validators in the packet rely in [Fine](http://mouf-php.com/packages/mouf/utils.i18n.fine/README.md) for\ntranslating validation error messages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Futils.common.validators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Futils.common.validators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Futils.common.validators/lists"}