定制 kduma/polish-validator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kduma/polish-validator

最新稳定版本:v1.2.1

Composer 安装命令:

composer require kduma/polish-validator

包简介

polish Validation rules for Laravel 5 Validator

README 文档

README

This package is deprecated and no longer maintained.

The package was built for Laravel 5.x and uses the legacy Validator::extend() API which has been superseded by the modern ValidationRule interface. It has not been updated to support Laravel 11+ and is incompatible with Laravel 13 (which requires PHP 8.3+).

If you need PESEL or Polish identity card validation, consider implementing custom rules using Laravel's ValidationRule interface — the validation logic from this package can be easily extracted into standalone rule classes.

L5-polish-validator-rules

Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight StyleCI

polish Validation rules for Laravel 5.X Validator

Check full documentation here: opensource.duma.sh/libraries/deprecated/laravel-polish-validator

Setup

You can install the package via composer:

composer require kduma/polish-validator

If you are using Laravel 5.5, the service provider will automatically be discovered.

On earlier versions, you need to do that manually. You must add the Service Provider to the providers array in config/app.php:

KDuma\Validator\PolishValidatorRulesServiceProvider::class,

Usage

You have 2 new Validator rules:

  • pesel or \KDuma\Validator\PeselNumberRule() - Checks if number is valid PESEL number
  • identity_card or \KDuma\Validator\PolishIdentityCardNumberRule() - Checks if number is polish identity document number

Code Authors

A special thanks to authors of phpedia.pl, an original pesel validator creators that this package is based on and Mariusz Tomaszewski (on algorytm.org) who wrote original identity card checker.

Packagist

View this package on Packagist.org: kduma/polish-validator

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固