yunusasuroglu/kimlikno
Composer 安装命令:
composer require yunusasuroglu/kimlikno
包简介
T.C. Kimlik Numarası doğrulama paketi
README 文档
README
Description
This package was developed to facilitate the verification process of the Turkish Republic Identity Number.
Setup
Run the following command to add your package to the project:
composer require yunusasuroglu/kimlikno
Use
You can use the verification functionality provided by the package as follows:
1. Using Laravel
- Add your service provider to
config/app.phpfile:
'providers' => [ yunusasuroglu\KimlikNo\KimlikNoServiceProvider::class, ];
- Facade Add:
'aliases' => [ 'KimlikNo' => yunusasuroglu\KimlikNo\Facades\KimlikNo::class, ];
- Use:
use yunusasuroglu\KimlikNo\KimlikNo; $tcNo = "12345678901"; if (KimlikNo::dogrula($tcNo)) { echo "Turkish Republic Identity Number is valid."; } else { echo "Turkish Republic Identity Number is not valid."; }
Requirements
- PHP 8.0 or above
- Composer
Contribute
- Fork this project.
- Create a new feature branch (
feature/feature-adi). - Commit your changes (
git commit -m 'New feature added'). - Push the branch to master (
git push origin feature/feature-adi). - Open a Pull Request.
Licence
This project is licensed under the MIT License.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-11