obspackage / optisolvalidationpackage
Reusable Components Package.
dev-master / 2.1.x-dev
2020-10-09 13:36 UTC
Requires
- php: ^7.2.5
- illuminate/support: ^6.18.42|^7.24.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is not auto-updated.
Last update: 2025-06-14 12:00:41 UTC
README
Installation
You can install the package via composer:
composer require obspackage/optisolvalidationpackage
Getting Started
This package contains multiple validations
- Validate email with DNS records
- 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
- [[Optisol business solutions](https://github.com/karthiga9892)
License
The MIT License (MIT). Please see License File for more information.
.