{"id":19684821,"url":"https://github.com/orumad/laravel-spanish-validator","last_synced_at":"2025-09-10T03:39:23.460Z","repository":{"id":57033201,"uuid":"184770182","full_name":"orumad/laravel-spanish-validator","owner":"orumad","description":"Laravel validator for spanish stuff: NIF, NIE, CIF, NSS, IBAN, Postal Code, Phone numbers ","archived":false,"fork":false,"pushed_at":"2024-08-23T11:39:09.000Z","size":37,"stargazers_count":25,"open_issues_count":1,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T06:30:26.373Z","etag":null,"topics":["cif","iban","identity-number","laravel","nie","nss","phone-number","postal-codes","spanish-phone","spanish-postal","tax-number","validation","validator"],"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/orumad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-03T14:33:27.000Z","updated_at":"2025-01-14T17:02:14.000Z","dependencies_parsed_at":"2025-05-30T06:09:48.014Z","dependency_job_id":"d348a972-3a36-4321-b8e5-67a046644b4b","html_url":"https://github.com/orumad/laravel-spanish-validator","commit_stats":{"total_commits":28,"total_committers":5,"mean_commits":5.6,"dds":0.2857142857142857,"last_synced_commit":"78dce8ede9f01e1eca2f67c88007d8942b040a73"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/orumad/laravel-spanish-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orumad%2Flaravel-spanish-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orumad%2Flaravel-spanish-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orumad%2Flaravel-spanish-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orumad%2Flaravel-spanish-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orumad","download_url":"https://codeload.github.com/orumad/laravel-spanish-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orumad%2Flaravel-spanish-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263017820,"owners_count":23400583,"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","iban","identity-number","laravel","nie","nss","phone-number","postal-codes","spanish-phone","spanish-postal","tax-number","validation","validator"],"created_at":"2024-11-11T18:19:04.196Z","updated_at":"2025-07-03T19:07:01.102Z","avatar_url":"https://github.com/orumad.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel validator for spanish stuff: NIF, NIE, CIF, NSS, IBAN, Postal Code, Phone numbers\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/orumad/laravel-spanish-validator.svg?style=flat-square)](https://packagist.org/packages/orumad/laravel-spanish-validator)\n[![StyleCI](https://github.styleci.io/repos/184770182/shield?branch=main)](https://github.styleci.io/repos/184770182)\n[![Quality Score](https://img.shields.io/scrutinizer/g/orumad/laravel-spanish-validator.svg?style=flat-square)](https://scrutinizer-ci.com/g/orumad/laravel-spanish-validator)\n[![Total Downloads](https://img.shields.io/packagist/dt/orumad/laravel-spanish-validator.svg?style=flat-square)](https://packagist.org/packages/orumad/laravel-spanish-validator)\n\nThis package is a set of diferent validation rules for spanish national id numbers like:\n\n- **NIF**: _\"Número de Identificación Fiscal\"_ (tax number for individuals).\n- **NIE**: _\"Número de Idenfiticación para Extranjeros\"_ (identity number for foreigners).\n- **CIF**: _\"Código de Identificación Fiscal\"_ (tax number for companies).\n- **NSS**: _\"Número de la Seguridad Social\"_ (national security number).\n\nAlso the package include validators for:\n\n- **IBAN**: International Bank Account Number.\n- **Postal codes**: Spanish postal codes.\n- **Phone number**: Spanish phone numbers format.\n\n\n## Instalation\n\nThe package can be installed via composer:\n\n```bash\ncomposer require orumad/laravel-spanish-validator\n```\n\nThe package will automatically register itself.\n\nIf you want to edit the validation messages, you should run the following command to publish the translation files into your `resources/lang` folder:\n\n```bash\nphp artisan vendor:publish --provider=\"Orumad\\SpanishValidator\\SpanishValidatorServiceProvider\"\n```\n\n\n## Available rules\n\n- [`nif`](#nif)\n- [`nie`](#nie)\n- [`cif`](#cif)\n- [`spanish_tax_number`](#spanish_tax_number)\n- [`spanish_personal_id`](#spanish_personal_id)\n- [`nss`](#nss)\n- [`iban`](#iban)\n- [`spanish_postal_code`](#spanish_postal_code)\n- [`spanish_phone`](#spanish_phone)\n\n\n### `nif`\n\nDetermine if the input is a valid _\"Número de Identificación Fiscal\"_ (tax number for individuals).\n\n\n### `nie`\n\nDetermine if the field under validation is a valid _\"Número de Idenfiticación para Extranjeros\"_ (identity number for foreigners).\n\n\n### `cif`\n\nThis rule will validate if the input field is a valid _\"Código de Identificación Fiscal\"_ (tax number for companies).\n\n\n### `spanish_tax_number`\n\nThis rule validates if the input is a valid spanish tax number: NIF or NIE or CIF.\n\n\n### `spanish_personal_id`\n\nWill validate if the input is a valid personal id number in Spain (NIF or NIE).\n\n\n### `nss`\n\nDetermine if the field under validation is a valid \"Número de la Seguridad Social\"_ (national security number).\n\n\n### `iban`\n\nTest if the input field is a valid IBAN bank account number. _(This uses the package `globalcitizen/php-iban` to check the validity of IBAN)_\n\n\n### `spanish_postal_code`\n\nWill check if the postal code is a valid spanish postal code.\n\n\n### `spanish_phone`\n\nThis tule validates if the input field content is a valid spanish phone number format.\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](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email dev@danielmunoz.io instead of using the issue tracker.\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%2Forumad%2Flaravel-spanish-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forumad%2Flaravel-spanish-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forumad%2Flaravel-spanish-validator/lists"}