承接 skilla/validator-cif-nif-nie 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

skilla/validator-cif-nif-nie

Composer 安装命令:

composer require skilla/validator-cif-nif-nie

包简介

Validator for Spanish National documents (CIF, NIF, NIE)

README 文档

README

Validator for Spanish National documents (CIF, NIF, NIE)

Latest Stable Version Build Status Total Downloads Latest Unstable Version License composer.lock codecov

[Installation | Instalación]

composer require skilla/validator-cif-nif-nie

[Description | Descripción]

The identity documents in Spain are composed of 9 alphanumeric digits with different formats, their generic form is 1 => [alphanumeric] + 7 => [numeric] +1 => [alphanumeric]

The validator has four simple methods to validate only the format (length and combination of letters and numbers) and three additional composite methods that make validations by groups, personal documents, documents of legal organizations and a third method that validates all kinds of Identification documents.

  • isDNIFormat => To validate the format of the document identifiers of Spanish people.
  • isNIEFormat => To validate the format of the document identifiers of foreign persons residing in Spain.
  • isNIFFormat => To validate the format of the document identifiers of Spanish or foreign persons in special situations.
  • isPersonalFormat => To validate the format of the document identifiers of any of the three types above.
  • isCIFFormat => To validate the format of document identifiers of Spanish or foreign organizations with the Spanish Tax Identification Code.
  • isValidFormat => To validate the format of document identifiers of individuals or organizations with the Spanish Tax Identification Code.

It also has 5 methods to validate that the identifier, including the check digit is correct.

  • isValidDNI => To validate the document identifiers of Spanish people.
  • isValidNIE => To validate the document identifiers of foreign persons residing in Spain.
  • isValidNIF => To validate the document identifiers of Spanish or foreign persons in special situations.
  • isValidCIF => To validate the document identifiers of Spanish or foreign organizations with the Spanish Tax Identification Code.
  • validate => To validate the document identifiers of individuals or organizations with the Spanish Tax Identification Code.

Los documentos de identidad en España están compuestos de 9 dígitos alfanuméricos con distintos formatos, su forma genérica es 1=>[alfanumérico] + 7=>[numéricos] +1=>[alfanumérico]

El validador dispone de cuatro métodos simples para validar únicamente el formato (longitud y combinación de letras y números) y tres métodos compuestos adicionales que hacen validaciones por grupos, los documentos personales, los documentos de organizaciones jurídicas y un tercero método que valida todo tipo de documentos de identificación.

  • isDNIFormat => Para validar el formato de los identificadores de documentos de personas españoles.
  • isNIEFormat => Para validar el formato de los identificadores de documentos de personas extranjeras residentes en España.
  • isNIFFormat => Para validar el formato de los identificadores de documentos de personas Españolas o extranjeras en situaciones especiales.
  • isPersonalFormat => Para validar el formato de los identificadores de documentos de cualquiera de los tres tipos anteriores.
  • isCIFFormat => Para validar el formato de los identificadores de documentos de organizaciones Españolas o extranjeras con Código de identificación fiscal de España.
  • isValidFormat => Para validar el formato de los identificadores de documentos de personas u organizaciones con Código de identificación fiscal de España.

También dispone de 5 métodos para validar que el identificador, incluido el dígito de control sea correcto.

  • isValidDNI => Para validar los identificadores de documentos de personas españoles.
  • isValidNIE => Para validar los identificadores de documentos de personas extranjeras residentes en España.
  • isValidNIF => Para validar los identificadores de documentos de personas Españolas o extranjeras en situaciones especiales.
  • isValidCIF => Para validar los identificadores de documentos de organizaciones Españolas o extranjeras con Código de identificación fiscal de España.
  • validate => Para validar los identificadores de documentos de personas u organizaciones con Código de identificación fiscal de España.

Examples | Ejemplos

skilla/validator-cif-nif-nie 适用场景与选型建议

skilla/validator-cif-nif-nie 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 196.93k 次下载、GitHub Stars 达 20, 最近一次更新时间为 2016 年 11 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 skilla/validator-cif-nif-nie 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 skilla/validator-cif-nif-nie 我们能提供哪些服务?
定制开发 / 二次开发

基于 skilla/validator-cif-nif-nie 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 196.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 27
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 6
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-11