jtrw/proxy-validator

Lib for check proxy

dev-master 2023-05-12 11:26 UTC

This package is auto-updated.

Last update: 2024-11-12 14:47:42 UTC


README

Simple Telegram Message

Phpunit codecov Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Install

composer require jtrw/proxy-validator

Example:

use Jtrw\ProxyValidator\ProxyValidator;
use GuzzleHttp\Client;

$validator = new Validator(new Client());

$responseDto = $validator->validate("host:port:login:pass:type");

if ($responseDto->isValid()) {
 // Do something
}
if ($errorsDto = $responseDto->getErrors()) {
    echo $errorsDto->getMessage();
}