Validation
Validation copied to clipboard
Is there a roadmap or future plan for this repository?
I was wondering if this repo has been abandoned. I noticed that the latest version is 2.2.3 which is over a year old and excludes useful 8.1 updates. Will this repo continue to be maintained?
I hope so, but we need volunteers. I'm not in a position to help right now, but I can guide someone with more time available.
This lib was designed for PHP 5.3, which means its core is mostly based on features available back then. We've updated it to work with PHP 7.x features (static types, for example) but the gap is getting wider. Octals, enums, generators, etc. All of which could engage in the validation chain in some way or another.
Honestly, I'd like to rewrite it. Maybe a reboot into a 3.0 version, but right now it's just too much for me to do it alone.
A rough roadmap for that would be:
- Design a validation API that suits modern PHP concepts. The question that needs to be answered is: how does new PHP features can interact with the validation chain?. For example, how could I validate a generator, or an enum?
- Decide what to do with the exception chain. Getting errors from the validation chain is the hard part. It should be optional (no runtime if you don't use it), maybe even a separate project.
- Write a proof of concept. Core validators, types, basic stuff.
If something is broken with PHP 8.1 (some validation misfires or takes wrong assumptions, security, etc) let me know, I can help you!
My project extensively uses this repo and it would be very time consuming for me to replace it. So I have a vested interest in seeing this repo continue and would be willing to help out however necessary.
If something is broken with PHP 8.1 (some validation misfires or takes wrong assumptions, security, etc) let me know, I can help you!
The only "broken" thing is that the current version of respect that will automatically install with composer is 2.2.3 which has some php 8.1 issues. The dev branch has PRs which fix this issues but really a 2.2.4 version should be release IMHO.
The only "broken" thing is that the current version of respect...
There are also a few things broken with type validations under PHP 8.
any updates on this matter?
Good news everyone! @tchari @andus4n @TCB13
I'll be working on releasing 2.2.4 soon. You can check out the work in progress on the 2.2 branch:
https://github.com/Respect/Validation/blob/2.2/CHANGELOG.md
We should expect a packagist release not later than next month.
The current roadmap is:
- Release 2.24 as the last 2.2.x minor. It will be the last version to support PHP 7.4
- Release 2.3 as the last 2.x major. It will be the last version to support PHP 8.0.
- Start thinking about 3.0 with PHP>=8.1 in mind.
Hi @alganet great news, thank you for supporting this library. I'm sure we aren't the only three users looking for some updates. The decision to remove support for older facades and versions of PHP seems about right.
great news indeed. this library really makes validations a pleasure. glad to hear it's alive & kickin'.
Ok, most PRs were now merged into 2.2
. I'm taking a look at the issues, and I'll work on them for a week or so trying to find anything important.
All bug and support issues without a usage example will be closed as soon as 2.2.4 is launched :( It is hard for a maintainer to tacke those, and many of those users might not still be invested. If they reopen those will an usage sample, I'll then commit to fix them.
This should bring us up to speed, and reduce the queue of troubleshooting to a minimal.
Release 2.2.4 is out!
https://github.com/Respect/Validation/releases/tag/2.2.4
I'll be closing this and writing more documentation across the repo (maybe a roadmap on a wiki or something).
Ideas, suggestions and questions are always welcome. Feel free to open a new Issue, or open up a topic in the Discussions tab!