{"id":36988350,"url":"https://github.com/mpijierro/identity","last_synced_at":"2026-01-13T23:25:31.637Z","repository":{"id":57020576,"uuid":"82422991","full_name":"mpijierro/identity","owner":"mpijierro","description":"Componente for Laravel to check valid spanish document id as NIF, CIF y NIE","archived":false,"fork":false,"pushed_at":"2020-07-07T07:10:51.000Z","size":45,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T01:42:17.889Z","etag":null,"topics":["laravel","nif","php"],"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/mpijierro.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":"2017-02-18T23:39:40.000Z","updated_at":"2020-07-07T07:10:54.000Z","dependencies_parsed_at":"2022-08-23T13:50:40.130Z","dependency_job_id":null,"html_url":"https://github.com/mpijierro/identity","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mpijierro/identity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpijierro%2Fidentity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpijierro%2Fidentity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpijierro%2Fidentity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpijierro%2Fidentity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpijierro","download_url":"https://codeload.github.com/mpijierro/identity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpijierro%2Fidentity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["laravel","nif","php"],"created_at":"2026-01-13T23:25:30.949Z","updated_at":"2026-01-13T23:25:31.622Z","avatar_url":"https://github.com/mpijierro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Identity for Laravel/Lumen ^5.1|6.X\n\nCheck valid spanish document id as NIF, CIF, NIE and IBAN back account. \n\n## Installation\n\nLaravel 5.8 or greather =\u003e master\n\nLaravel 5.1 to 5.7 =\u003e 1.1.0\n\nRequire this package with composer:\n\nAdd in the require section of your composer.json\n```\ncomposer require mpijierro/identity\n```\n\n\n### Laravel/Lumen\n\n```php\n\\MPijierro\\Identity\\IdentityServiceProvider::class,\n```\n\nIf you want to use the facade, add this to your facades in app.php:\n\n```php\n'Identity' =\u003e MPijierro\\Identity\\Facades\\Identity::class,\n```\n\n\nNote: Branch 1.1 has a modification in which the default error messages have been removed. If you use this branch, you must add the validation messages you want to your language file.\n\n## Usage\n\nYou can now check document ide using the Facade (when added)\n\n```php\nIdentity::isValidCif('1234foo');\nIdentity::isValidNif('1234foo');\nIdentity::isValidNie('1234foo');\nIdentity::isValidIban('1234foo');\nIdentity::isValidNNSS('1234foo');\n```\n\nmethods returns true or false\n\n\nIt is also possible to use **validation rules**:\n\n```php\n'nif_field' =\u003e 'nif'\n\n'cif_field' =\u003e 'cif'\n\n'nie_field' =\u003e 'nie'\n\n'iban_field' =\u003e 'iban'\n\n'nnss_field' =\u003e 'nnss'\n\n```\nIf error ocurred, error message will be:\n```php\n \"The $foo_attribute field is not a valid Foo.\";\n```\n\n\n## Thanks\n\nThe original code for NIF, CIF AND NIE is in next link\n\nhttp://www.michublog.com/informatica/8-funciones-para-la-validacion-de-formularios-con-expresiones-regulares\n\nThanks to original code of: globalcitizen/php-iban\n \n https://github.com/globalcitizen/php-iban\n \n Thanks to original code for the validation of the NNSS of: http://intervia.com\n \n http://intervia.com/doc/validar-numeros-de-la-seguridad-social/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpijierro%2Fidentity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpijierro%2Fidentity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpijierro%2Fidentity/lists"}