SylSoft.Utils.Validators 0.4.0-q

This is a prerelease version of SylSoft.Utils.Validators.
dotnet add package SylSoft.Utils.Validators --version 0.4.0-q
                    
NuGet\Install-Package SylSoft.Utils.Validators -Version 0.4.0-q
                    
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="SylSoft.Utils.Validators" Version="0.4.0-q" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SylSoft.Utils.Validators" Version="0.4.0-q" />
                    
Directory.Packages.props
<PackageReference Include="SylSoft.Utils.Validators" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SylSoft.Utils.Validators --version 0.4.0-q
                    
#r "nuget: SylSoft.Utils.Validators, 0.4.0-q"
                    
#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.
#:package SylSoft.Utils.Validators@0.4.0-q
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SylSoft.Utils.Validators&version=0.4.0-q&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SylSoft.Utils.Validators&version=0.4.0-q&prerelease
                    
Install as a Cake Tool

SylSoft.Utils.Validators

A modular, extensible, and lightweight set of validators for .NET developers.
Covers global and country-specific validation rules without relying on any external services.


✨ Features

  • Global validators (Email, IP, URL, GUID, IBAN, etc.)
  • Country-specific validators (Argentina, Brazil, Spain, USA, Mexico, Chile)
  • Fluent and intuitive API
  • Full C# 10+ and .NET 6+ support
  • 100% offline, no external dependencies
  • Designed for extensibility

🚀 Installation

dotnet add package SylSoft.Utils.Validators

Or via NuGet Package Manager:

Install-Package SylSoft.Utils.Validators

📚 Usage

using SylSoft.Utils.Validators;

// Email validation
var emailValidator = ValidatorFactory.Email();
bool isValidEmail = emailValidator.Validate("example@domain.com");

// Validate CUIL (Argentina)
var cuilValidator = ValidatorFactory.CUIL();
bool isValidCuil = cuilValidator.Validate("20-12345678-3");

// Date validations
var dateService = ValidatorFactory.Date();
bool isLeapYear = dateService.IsLeapYear(2024);
bool isFirstDayOfMonth = dateService.IsFirstDayOfMonth(DateTime.Today);

🛆 Available Validators

Global

  • EmailValidator
  • UrlValidator
  • IpValidator
  • PhoneValidator
  • PasswordStrengthValidator
  • GuidValidator
  • IBANValidator
  • CreditCardValidator
  • Base64Validator
  • HexColorValidator
  • AlphanumericValidator
  • NumericValidator
  • LuhnValidator
  • DateValidator (and Date service)

Argentina (WIP)

  • CUILValidator
  • CUITValidator
  • DNIValidator
  • CBUValidator
  • AliasCBUValidator
  • PatenteValidator
  • TelefonoValidator

Brazil (WIP)

  • CPFValidator
  • CNPJValidator

Spain (WIP)

  • NIFValidator
  • NIEValidator
  • CIFValidator

USA (WIP)

  • SSNValidator
  • ZipCodeValidator

Mexico (WIP)

  • RFCValidator
  • CURPValidator
  • CodigoPostalValidator

Chile (WIP)

  • RUTValidator

(WIP) stands for "Work In Progress." It indicates that the validators marked with this label are under development and may not be fully implemented or tested. Users should be aware that these features might change or may not be entirely available in the current version.


🛡️ License

This project is licensed under the MIT License.


❤️ Support

If you find this library useful, consider sponsoring the project to help continue development!
Become a Sponsor ✨


🌍 About

Developed by Cristian M. Zangaro at SylSoft.


LICENSE

MIT License

Copyright (c) 2025 Cristian M. Zangaro

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  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.  net6.0-windows7.0 is compatible.  net7.0 is compatible.  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.  net7.0-windows7.0 is compatible.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-browser1.0 is compatible.  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.  net8.0-windows7.0 is compatible.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-browser1.0 is compatible.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 is compatible.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.4.0-q 921 7/28/2025
0.4.0-p 141 7/28/2025
0.4.0-o 145 7/28/2025
0.4.0-n 145 7/28/2025
0.4.0-m 155 7/16/2025
0.4.0-l 163 5/20/2025
0.4.0-k 154 5/20/2025
0.4.0-j 156 5/5/2025
0.4.0-i 161 5/5/2025
0.4.0-h 150 5/5/2025
0.4.0-g 149 5/5/2025
0.4.0-f 152 5/5/2025
0.4.0-e 158 4/29/2025
0.4.0-d 169 4/28/2025
0.4.0-c 160 4/28/2025
0.4.0-b 168 4/28/2025
0.4.0-a 158 4/28/2025
0.3.0-d 164 4/28/2025
0.3.0-c 158 4/28/2025
0.3.0-b 171 4/28/2025
Loading failed