Download the PHP package qdenka/easyvalidation without Composer

On this page you can find all versions of the php package qdenka/easyvalidation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package easyvalidation

EasyValidation

Latest Stable Version [Total Downloads]()

EasyValidation is a lightweight PHP library for validating common data types. Built with DDD, SOLID, and DRY principles, it offers both a factory-based API and convenient static helper methods.


๐Ÿ“‹ Table of Contents


โœจ Features


โš™๏ธ Requirements


๐Ÿš€ Installation

Install with Composer:

Autoloading is configured via PSR-4 (QDenka\EasyValidation\).


๐Ÿ› ๏ธ Usage

Factory API

Use ValidatorFactory to retrieve any validator by its type key:

Static Helpers

For quick checks, use the Validator facade:


๐Ÿ“‘ Available Validators

Type Static Helper Description
email isValidEmail() RFC-compliant email
google_email isGoogleMail() Gmail & Googlemail domains
disposable_email isDisposableEmail() Blacklisted disposable domains
url isValidUrl() HTTP/HTTPS URLs
number isValidNumber() Numeric values
date isValidDate() Date in Y-m-d (configurable format)
ip isValidIp() IPv4 & IPv6 addresses
uuid isValidUuid() UUID v1โ€“v5
json isValidJson() JSON string parsing
base64 isValidBase64() Base64-encoded data
phone isValidPhone() International E.164 phone numbers

โš™๏ธ Configuration

Disposable Domains List

Customize disposable email domains by editing config/disposable_domains.php:

Ensure all domains are lowercase.


๐Ÿงฉ Extending

To add a new validator:

  1. Implement ValidatorInterface in src/Domain/YourType/YourValidator.php.
  2. Register your class in ValidatorFactory (src/Application/Validators/ValidatorFactory.php).
  3. (Optional) Add a static helper in Validator facade (src/Infrastructure/Factories/Validator.php).
  4. Write tests under tests/ following existing patterns.

๐Ÿงช Testing

Run PHPUnit:

All tests must pass before merging.


๐Ÿค Contributing

  1. Fork repository
  2. Create a feature branch (git checkout -b feature/NewValidator)
  3. Commit changes (git commit -m 'Add NewValidator')
  4. Push (git push origin feature/NewValidator)
  5. Open a Pull Request

Follow PSR-12 coding standards and include tests.


๐Ÿ“„ License

This project is licensed under the MIT License. See LICENSE for details.


All versions of easyvalidation with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
psr/container Version ^1.1
ext-intl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package qdenka/easyvalidation contains the following files

Loading the files please wait ...