{"id":16466766,"url":"https://github.com/torralbodavid/identity-card-checker","last_synced_at":"2025-09-10T14:04:58.263Z","repository":{"id":57072002,"uuid":"425586679","full_name":"torralbodavid/identity-card-checker","owner":"torralbodavid","description":"🛂 Use this package to validate the identity card from your country using laravel validation rules.","archived":false,"fork":false,"pushed_at":"2021-11-07T23:22:06.000Z","size":65,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T00:12:06.447Z","etag":null,"topics":["cif","dni","laravel","nie","rules"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/torralbodavid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null},"funding":{"github":"torralbodavid"}},"created_at":"2021-11-07T18:41:19.000Z","updated_at":"2023-09-28T10:18:17.000Z","dependencies_parsed_at":"2022-08-24T10:52:11.337Z","dependency_job_id":null,"html_url":"https://github.com/torralbodavid/identity-card-checker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torralbodavid%2Fidentity-card-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torralbodavid%2Fidentity-card-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torralbodavid%2Fidentity-card-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torralbodavid%2Fidentity-card-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torralbodavid","download_url":"https://codeload.github.com/torralbodavid/identity-card-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244296933,"owners_count":20430336,"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":["cif","dni","laravel","nie","rules"],"created_at":"2024-10-11T11:44:43.652Z","updated_at":"2025-03-23T11:32:36.563Z","avatar_url":"https://github.com/torralbodavid.png","language":"PHP","funding_links":["https://github.com/sponsors/torralbodavid"],"categories":[],"sub_categories":[],"readme":"# Identity Card Checker Laravel Validation Rules\n\n[![Latest Stable Version](http://poser.pugx.org/torralbodavid/identity-card-checker/v)](https://packagist.org/packages/torralbodavid/identity-card-checker)\n[![Total Downloads](http://poser.pugx.org/torralbodavid/identity-card-checker/downloads)](https://packagist.org/packages/torralbodavid/identity-card-checker)\n[![License](http://poser.pugx.org/torralbodavid/identity-card-checker/license)](https://packagist.org/packages/torralbodavid/identity-card-checker) [![PHP Version Require](http://poser.pugx.org/torralbodavid/identity-card-checker/require/php)](https://packagist.org/packages/torralbodavid/identity-card-checker)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/torralbodavid/identity-card-checker/run-tests?label=tests)](https://github.com/torralbodavid/identity-card-checker/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/torralbodavid/identity-card-checker/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/torralbodavid/identity-card-checker/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n\nUse this package to validate the identity card number from your country\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require torralbodavid/identity-card-checker\n```\n\nYou can publish the config file with:\n```bash\nphp artisan vendor:publish --provider=\"Torralbodavid\\IdentityCardChecker\\IdentityCardCheckerServiceProvider\" --tag=\"identity-card-checker-config\"\n```\n\n## Usage\n\n🇪🇸 Currently we are only supporting validation of Spanish documents: DNI, NIE and CIF.\n\nFeel free to open an issue if you want your country id to be supported or also open a pull request.\n\nAdd the following rule on your form validation:\n\n```php\n    use Torralbodavid\\IdentityCardChecker\\Rules\\IdCardES;\n\n    \n    $request-\u003evalidate([\n        ...\n        'id_validation' =\u003e new IdCard('es'),\n    ]);\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nIf you discover any security related issues, please email davidtorralboperez@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [David Torralbo](https://github.com/torralbodavid)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorralbodavid%2Fidentity-card-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorralbodavid%2Fidentity-card-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorralbodavid%2Fidentity-card-checker/lists"}