Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer version #98

Open
matronator opened this issue Mar 3, 2020 · 3 comments
Open

Composer version #98

matronator opened this issue Mar 3, 2020 · 3 comments

Comments

@matronator
Copy link

So, little confused here with the versions. Composer installs version 4.0.1 by default, but on the website (https://www.phpcaptcha.org/download/), or anywhere else for that matter, is no mention of version 4. The latest version in master and on the website seems to be 3.6.7, so why does Composer installs v4 and how is 4.0.1 different?

@Maescool
Copy link
Contributor

Maescool commented Mar 4, 2020

afaik the 4.0.1 version is in the nexgen branch, and that one is working best.. the 3. version is broken for me..

@dapphp
Copy link
Owner

dapphp commented May 30, 2020

Nextgen branch was intended to be the next major version of this and had added features. If you want to use any of the code I'd start with that branch.

Around the time development finished on that, image captchas like this are now easily defeated with a little bit of time and some free tools and as a result I have failed to keep up with this project.

@dapphp
Copy link
Owner

dapphp commented May 30, 2020

The changes in nextgen new from master are/were:

4.0.1
- Increase captcha difficulty
- Add setting "use_text_angles". Enable to select a random angle and step value and draw each character at an angle in a step like fashion
- Add setting "use_random_spaces". Enable to insert 1-3 spaces between a random group of letters some of the time
- Add setting "use_random_baseline". Enable to draw letters at a random height instead of centered.  Each character's baseline is a step up or down from the previous (not totally random)
- Add setting "use_random_boxes". Enable to draw a bounding box around one or more characters at random
- Improve performance of captcha generation when using distortion (perturbation) and noise (noise_level)
- Enable image anti-aliasing
- Make all text functions multibyte safe when using UTF-8 or other encodings for charsets and wordlists (using mbstring)
- Deprecate background images.  May be removed in future version or limited to special use
- Fix code display issue when using a math captcha that was re-displayed after being retrieved from a StorageAdapter

4.0.0
- REMOVE namespaces (everything is tied to a captcha ID now)
- Implement StorageAdapter interface
- Move session and database storage into StorageAdapters
- Add memcached StorageAdapter (requires PHP extension memcached)
- Add Redis StorageAdapter (requires PHP extension Redis [https://github.com/phpredis/phpredis])
- REMOVE options use_sqlite_db and sqlite_database (deprecated since 3.2 RC4)
- REMOVE database options from class (options are now defined in config.inc.php)
- REMOVE Flash audio playback and Flash fallback
- REMOVE "static captcha" functionality (getCaptchaId and checkByCaptchaId)
- REMOVE SoX audio manipulation from PHP via shell_exec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants