The original post: /r/php by /u/HyperDanon on 2025-01-02 19:48:19.
Hi all! Some time ago I posted information about asking for feedback on alpha in library: https://www.reddit.com/r/PHP/comments/1cncvss/after_5_years_of_development_i_just_released/ The responses where great from all you guys! Big love!
Among awesome comments I found many useful feedback regarding important issues, such as that it looks like OOP-wrapper, performance in routers, other ideas.
I want to see what the library would look like if it was written in style of simple functions, instead of classes. The initial write of the library took around 5 years; I gather a whole bunch of info and knowledge on PCRE and how regexp work and how people use it in their application; the first revamp of the full library is already done - I tried to keep the good stuff and removing all the waste. Now I’d like to see how the library would look like if it was extremely simplified - everything not STRICTLY needed removed and only keeping the important stuff - I think I could go with simple functions and absolutlely basic classes. The methods could be named something like pattern_match()
, re_match()
, regex_match()
. I think I’d go with re_match()
for now, since it’s the shortest. What do you think?
This time when I’m doing the revamp, I’m going to do it live - i’ll be posting each step of the revamp to the repository (continuous integration style) and post here and ask you guys for feedback. I created the repo few minutes ago, here’s the link: https://github.com/t-regx/functions
The goal is to backport only the strictly needed features from https://github.com/t-regx/t-regx library to the new version; and leaving all the waste behind. Please post feedback, your opinions, ideas, suggestions - i’ll try to incorporate the ideas. The users of the t-regx library are using 1.0 now; the newly revamped version with functions could be probably released as 2.0.
PS: OMG! I just found out the domain has been hijacked! I’m fixing it right now.