wilsenhc/rif-validation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wilsenhc/rif-validation

最新稳定版本:v1.0.0

Composer 安装命令:

composer require wilsenhc/rif-validation

包简介

A Validation class to check if a RIF is valid

README 文档

README

A Validation class to check if a RIF is valid

Latest Version on Packagist Tests Total Downloads

This package provides a class to validate a RIF (Registro Único de Información Fiscal).

Overview

The rif-validation library provides a simple and efficient way to validate RIF (Registro de Información Fiscal) numbers in PHP. This library includes methods to check the validity of RIF numbers and retrieve error messages for invalid entries.

Installation

You can install the library using Composer. Run the following command in your terminal:

composer require wilsenhc/rif-validation

Usage

To use the Validation class, include the autoloader and create an instance of the class:

require 'vendor/autoload.php';

use Wilsenhc\RifValidation\RifValidator;

$validator = new RifValidator();

if ($validator->isValid('RIF_NUMBER')) {
    echo "The RIF number is valid.";
} else {
    echo "The RIF number is NOT valid.";
}

Methods

  • isValid($rif): Validates the provided RIF number.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-24