jtrw / proxy-validator
Lib for check proxy
dev-master
2023-05-12 11:26 UTC
Requires
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-11-12 14:47:42 UTC
README
Simple Telegram Message
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(); }