承接 ajgl/validator-es 相关项目开发

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

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

ajgl/validator-es

Composer 安装命令:

composer require ajgl/validator-es

包简介

Validation library for some Spanish codes.

README 文档

README

This library provides some validators for common Spanish codes.

Build Status Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Current supported codes to validate are:

  • DNI
  • NIE
  • IdCard (DNI or NIE)
  • CCC
  • IBAN (Limited to Spanish accounts)

Installation

composer require ajgl/validator-es

Usage

All validators implements a common interface with only one method:

<?php
namespace Ajgl\ValidatorEs;

interface ValidatorInterface
{
    public function isValid(mixed $value): bool;
}

To use any validator, you must instantiate it, and call the isValid method:

<?php
require 'vendor/autoload.php';

$value = 'Y0000000Z';
$validator = new \Ajgl\ValidatorEs\IdCardValidator();
assert($validator->isValid($value));

License

This library is released under an open source license. See the complete license in the LICENSE file.

Reporting an issue or a feature request

Read the CONTRIBUTING.md file.

Author Information

Developed with ♥ by Antonio J. García Lagar.

If you find this library useful, please add a ★ in the GitHub repository page.

统计信息

  • 总下载量: 3.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固