IraniValidator.core 6.0.0

dotnet add package IraniValidator.core --version 6.0.0
NuGet\Install-Package IraniValidator.core -Version 6.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IraniValidator.core" Version="6.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IraniValidator.core --version 6.0.0
#r "nuget: IraniValidator.core, 6.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install IraniValidator.core as a Cake Addin
#addin nuget:?package=IraniValidator.core&version=6.0.0

// Install IraniValidator.core as a Cake Tool
#tool nuget:?package=IraniValidator.core&version=6.0.0

جعبه ابزار اعتبار سنجی

Build Status

جعبه ابزاری برای اعتبار سنجی برخی مقادیر مربوط به کشور ایران.

اعتبار سنجی

  • اعتبار سنجی شماره موبایل به تفکیک نام اپراتور(همراه اول - ایرانسل - رایتل)
  • اعتبار سنجی کد ملی افراد
  • اعتبار سنجی شناسه ملی شرکت ها
  • اعتبار سنجی شماره کارت های بانکی
  • اعتبار سنجی مقادیر شبکه و اینترنت(ایمیل - آی پی ها - آدرس های اینترنتی)

به زودی قابلیت های جدید افزوده خواهد شد.

نصب

نصب این بسته به راحتی از طریق NuGet امکان پذیر است. برای نصب از دستور زیر استفاده کنید:

Install-Package IraniValidator.core -Version 1.2.0 

راهنمای استفاده

این بسته شامل تعدادی اکستنشن متد برای اعتبار سنجی رشته ها است. نمونه کد:

            string test = "09191234567";

            var isIraniMobile = test.IsValidMobile(); //return true

            var isIrancell = test.IsValidMobile(OpratorType.IranCell); //return false


            string test1 = "3962619771";

            var isNationalId = test1.IsValidPersonNationalId(); //return true

            var isCompanyNationalId = test1.IsValidCompanyNationalId(); //return false

            var isCreditNumber = test1.IsValidCreditCard(); //return false


            string test2 = "test@gmail.com";

            var isEmail = test2.IsValidEmailAddress();  //return 


            //and so on...
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.0 851 8/26/2022
1.3.0 507 12/25/2019
1.2.0 570 4/5/2019
1.0.0 528 4/5/2019

ابزار اعتبار سنجی رشته هایی مانند شماره موبایل شماره ملی شماره کارت بانکی و ...