SmartValidationsLibrary is a cutting-edge C# library designed to simplify data validation tasks. Whether it's email addresses, phone numbers, custom patterns, or dates, this library provides the utilities you need.
- Email Validation: No need to grapple with complicated regular expressions; simply use the
IsValidEmail
method. - Phone Number Validation: With regional flexibility, validate phone numbers with ease using
IsValidPhoneNumber
. - Date Verification: Ensure inputted dates are correctly formatted with the
IsValidDate
function. - Custom Validations: Beyond the built-in validators, you can introduce your own custom patterns and use the
IsValidCustom
method for validation. You can even add new custom validations on-the-fly withAddCustomValidation
.
- Modern, fluent API for validating various data types.
- Entity validation using attributes for a cleaner validation process.
- Region-specific phone number validation.
- A comprehensive set of validations that can be further expanded based on project needs.
- Clear, concise exception handling for validation errors.
In a world where data drives decisions, ensuring the integrity and accuracy of that data is crucial. With SmartValidationsLibrary, developers have the tools they need to perform rigorous validation checks efficiently.
SmartValidationsLibrary harnesses the power of:
- C#: A modern, object-oriented programming language, perfect for all kinds of applications.
- Regex: Leveraged for meticulous and precise data validation checks.
Integrating SmartValidationsLibrary into your project is straightforward:
- Add the NuGet package to your solution.
- Use the following namespace in your classes:
using SmartValidationsLibrary;
Interested in making SmartValidationsLibrary even better? Fantastic!
Here's how you can contribute:
- Clone the repository:
git clone https://github.com/AdrianBailador/SmartValidationsLibrary.git
- Make your desired changes.
- Write tests ensuring the validity of your changes.
- Submit a pull request!
Together, we can make data validation smarter.
MIT
Links: