aichadigital/lararoi 问题修复 & 功能扩展

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

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

aichadigital/lararoi

最新稳定版本:v0.5.0

Composer 安装命令:

composer require aichadigital/lararoi

包简介

Agnostic package for intra-community NIF-VAT/VAT verification. Designed primarily for use with Larabill.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status PHPStan PHP Insights Code Style Code Coverage Total Downloads

⚠️ BETA VERSION - Active Development This package is currently in beta (v0.2.x). The API and configuration may change significantly in future versions. Use in production at your own risk. We recommend pinning to a specific version in your composer.json.

Agnostic package for intra-community NIF-VAT/VAT verification in Laravel.

Description

Lararoi is an independent package that provides services to verify tax identification numbers (NIF-VAT) of intra-community operators in the European Union. It is designed to be agnostic and reusable, although its main use is as a dependency of the Larabill package.

Features

  • ✅ Verification via VIES (European Commission)
  • ✅ Support for multiple API providers (free and paid)
  • ✅ Integrated caching system (memory + database)
  • ✅ Automatic fallback between providers
  • ✅ Robust error handling
  • ✅ Logging and auditing
  • ✅ Development commands for testing with real APIs

Installation

composer require aichadigital/lararoi

Configuration

Publish the configuration:

php artisan vendor:publish --provider="Aichadigital\Lararoi\LararoiServiceProvider" --tag="config"

Publish the migrations:

php artisan vendor:publish --provider="Aichadigital\Lararoi\LararoiServiceProvider" --tag="migrations"
php artisan migrate

Basic Usage

use Aichadigital\Lararoi\Contracts\VatVerificationServiceInterface;

$service = app(VatVerificationServiceInterface::class);

$result = $service->verifyVatNumber('B12345678', 'ES');

if ($result['is_valid']) {
    echo "Valid VAT: " . $result['company_name'];
}

Documentation

Complete documentation is available in the docs/ directory:

Testing & Quality

The package maintains high quality standards with:

  • Automated tests with Pest PHP
  • Static analysis with PHPStan (level 5)
  • Code style with Laravel Pint
  • Code coverage minimum of 20%
  • CI/CD with GitHub Actions

To run tests locally:

# Run tests
composer test

# Run tests with coverage
composer test:coverage

# Static analysis with PHPStan
composer analyse

# Format code
composer format

License

The MIT License (MIT). Please see License File for more information.

Credits

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固