yunusasuroglu / kimlikno
T.C. Kimlik Numarası doğrulama paketi
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/yunusasuroglu/kimlikno
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2025-12-21 23:14:35 UTC
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.