avkluchko/government-bundle 问题修复 & 功能扩展

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

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

avkluchko/government-bundle

Composer 安装命令:

composer require avkluchko/government-bundle

包简介

Utilities for use with Russian government classifiers and dictionaries

README 文档

README

Build Status Total Downloads Latest Stable Version License

Utilities for use with official Russians classifiers and dictionaries.

Requirements

The minumum requirement by Government Bundle is that your web-server supports PHP 7.4 or above.

Warning! If your server use PHP x32, than will work only simple validation without check control sum.

Installation

Install the package with:

composer require avkluchko/government-bundle

If you're not using Symfony Flex, you'll also need to enable the AVKluchko\GovernmentBundle\GovernmentBundle in your AppKernel.php file

Usage

OGRN Validator - validate Primary State Registration Number (OGRN).

// src/Controller/SomeController.php
use AVKluchko\GovernmentBundle\Validator\OGRNValidator;

// ...
class SomeController
{
    public function index(OGRNValidator $validator)
    {
        $isValid = $validator->isValid('some_ogrn');
        // ...
    }
}

INN Validator - validate Taxpayer Identification Number (INN).

// src/Controller/SomeController.php
use AVKluchko\GovernmentBundle\Validator\INNValidator;

// ...
class SomeController
{
    public function index(INNValidator $validator)
    {
        $isValid = $validator->isValid('some_inn');
        // ...
    }
}

SNILS Validator - validate Individual insurance account number (SNILS).

// src/Controller/SomeController.php
use AVKluchko\GovernmentBundle\Validator\SNILSValidator;

// ...
class SomeController
{
    public function index(SNILSValidator $validator)
    {
        $isValid = $validator->isValid('some_snils');
        // ...
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固