{"id":28360070,"url":"https://github.com/respect/validationbundle","last_synced_at":"2025-10-08T10:53:42.637Z","repository":{"id":6625752,"uuid":"7869548","full_name":"Respect/ValidationBundle","owner":"Respect","description":"A Respect\\Validation Bundle for Symfony","archived":false,"fork":false,"pushed_at":"2015-06-10T21:01:19.000Z","size":231,"stargazers_count":17,"open_issues_count":2,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-04T16:26:10.967Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Respect.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-01-28T12:45:13.000Z","updated_at":"2022-06-23T10:30:56.000Z","dependencies_parsed_at":"2022-09-16T18:12:05.798Z","dependency_job_id":null,"html_url":"https://github.com/Respect/ValidationBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Respect/ValidationBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Respect%2FValidationBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Respect%2FValidationBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Respect%2FValidationBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Respect%2FValidationBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Respect","download_url":"https://codeload.github.com/Respect/ValidationBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Respect%2FValidationBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931659,"owners_count":26070788,"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-10-08T02:00:06.501Z","response_time":56,"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":"2025-05-28T10:11:14.116Z","updated_at":"2025-10-08T10:53:42.631Z","avatar_url":"https://github.com/Respect.png","language":"PHP","readme":"# ValidationBundle\n\n[![Build Status](https://travis-ci.org/Respect/ValidationBundle.png?branch=develop)](https://travis-ci.org/Respect/ValidationBundle?branch=develop)\n[![Latest Stable Version](https://poser.pugx.org/respect/validation-bundle/v/stable.png)](https://packagist.org/packages/respect/validation-bundle)\n[![Total Downloads](https://poser.pugx.org/respect/validation-bundle/downloads.png)](https://packagist.org/packages/respect/validation-bundle)\n[![Latest Unstable Version](https://poser.pugx.org/respect/validation-bundle/v/unstable.png)](https://packagist.org/packages/respect/validation-bundle)\n[![License](https://poser.pugx.org/respect/validation-bundle/license.png)](https://packagist.org/packages/respect/validation-bundle)\n\nA Respect\\Validation Bundle for Symfony\n\n## Installation\n\nPackage is available on [Packagist](http://packagist.org/packages/respect/validation-bundle),\nyou can install it using [Composer](http://getcomposer.org).\n\n```shell\ncomposer require respect/validation-bundle\n```\n\nAdd the bundle to your AppKernel.php:\n\n```php\npublic function registerBundles()\n{\n    return array(\n        // ...\n        new Respect\\ValidationBundle\\RespectValidationBundle(),\n        // ...\n    );\n}\n```\n\n## Usage\n\n### Use as service `respect.validator`\n\n```php\n//...\nclass AcmeController extends Controller\n{\n    public function indexAction()\n    {\n        $number = 123;\n        $isValid = $this-\u003eget('respect.validator')-\u003enumeric()-\u003evalidate($number);//true\n//...\n```\n\n### Use as alias\n\n```php\n//...\n\nuse Respect\\Validation\\Validator as v;\n\nclass AcmeController extends Controller\n{\n    public function indexAction()\n    {\n        $validUsername = v::alnum()\n            -\u003enoWhitespace()\n            -\u003elength(1,15);\n\n        $isValid = $validUsername-\u003evalidate('alganet'); //true\n        //...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frespect%2Fvalidationbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frespect%2Fvalidationbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frespect%2Fvalidationbundle/lists"}