We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Url validation

Hi,

I would like to validate URLs that are not related to any models. Is it possible to use Phalcon to validate passed strings? If no, do you think that there's a need for that functionality? Maybe, I could add a validation/validator class?

Thanks in advance,

Kamil

I just use Phalcon\Validation\Validator\Regex but I think pull request would be awesome

Thanks for thumbs up, I added a PR which was merged few moments ago - version 1.3.0 https://github.com/phalcon/cphalcon/blob/1.3.0/ext/validation/validator/url.c