obspackage/optisolvalidationpackage

Reusable Components Package.

dev-master / 2.1.x-dev 2020-10-09 13:36 UTC

This package is not auto-updated.

Last update: 2025-06-14 12:00:41 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

Installation

You can install the package via composer:

composer require obspackage/optisolvalidationpackage

Getting Started

This package contains multiple validations

  1. Validate email with DNS records
  2. Validation of empty field in dynamic row form fields

Usage

Basic examples for multiple validation

//declare in controller/model or wherever you want to use
use Obspackage\Optisolvalidationpackage\Validpackage;


 // for email validation

$validation = new Validpackage();
$validation->emailvalidate("example@example.com"); //returns array of data which contains $response['status'] - true/false, $response['message'] - valid email, invalid email format, DNS not available.

//for dynamic row validation

$validation = new Validpackage();
$response = $validation->rowvalidation($request->rowname); //returns array of data which contains $response['status'] - true/false, $response['data'] - empty fields

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email karthigasobs@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

.