承接 deligoez/tckimlikno 相关项目开发

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

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

deligoez/tckimlikno

最新稳定版本:v5.1.0

Composer 安装命令:

composer require deligoez/tckimlikno

包简介

Turkish Identification Number Verification & Validation Package for Laravel

README 文档

README

MIT Licensed Latest Version on Packagist Total Downloads Build Status Quality Score StyleCI

Turkish Identification Number Verification & Validation Package for Laravel.

Installation

Via Composer

$ composer require deligoez/tckimlikno

If you are using Laravel 5.5+, the package will automatically register the service provider for you.

Usage

use Deligoez\TCKimlikNo\TCKimlikNo; // Verifies Citizenship Number According to it's Algorithm. // Returns Boolean TCKimlikNo::verify('12345678901'); // Returns false TCKimlikNo::verify('10000000146'); // Returns true // Verifies Parameters and validates all using nvi.gov.tr API // Returns Boolean TCKimlikNo::validate('10000000146', 'Yunus Emre', 'Deligöz', '1900') // Auto Uppercase Disabled TCKimlikNo::validate('10000000146', 'YUNUS EMRE', 'DELİGÖZ', '1900', false)

Available Laravel Validation Rules

TCKimlikNoVerify

// In a Form Request Class public function rules() { return [ 'tckimlikno' => ['required', new TCKimlikNoVerify()], ]; }
// In a Controller use Deligoez\TCKimlikNo\Rules\TCKimlikNoVerify; /**  * Store a tckn.  *  * @param Request $request  * @return Response  */ public function store(Request $request) { $validatedData = $request->validate([ 'tckn' => ['bail', 'required', new TCKimlikNoVerify()], ]); // tckn is valid... }

TCKimlikNoValidate

// In a Form Request Class public function rules() { return [ 'tckimlikno' => ['required', new TCKimlikNoValidate( $name, $surname, $birthYear, $autoUppercase // Optional, defaults to true )], ]; }

Faker Provider

use Deligoez\TCKimlikNo\Provider\TCKimlikNoFakerProvider; $faker = Faker\Factory::create(); $faker->addProvider(new TCKimlikNoFakerProvider($faker)); // a Random Valid TCKN $tckn = $faker->tckn; // 60174067810 

Changelog

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todo list.

Security

If you discover any security related issues, please email ye@deligoz.me instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

  • Stars: 29
  • Watchers: 2
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固