Download the PHP package zexbre/mathguard without Composer

On this page you can find all versions of the php package zexbre/mathguard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mathguard

ZexBre\MathGuard

MathGuard form antispam protection version 3.1

https://www.codegravity.com/projects/mathguard

Creating this website I attracted lots of spambots to flood my forum, my programming resources, freelance database and other forms, but you probably know this situation very well. So I decided to create a simple PHP Class which could help me and probably other people to deal with the spam.

You have probably seen this solution before on some other websites, it's nothing new, but I did it by myself and the way I wanted and I am using it everywhere it's needed.

The principle of this antispam class

The principle is very simple - The class inserts a small piece of HTML code into your form - an expression consisting of two random numbers, one text input field for user's answer, and one hidden field with the hashcode.

When user submits the form with the answer, the answer is being hashed and compared to the security code that has been submitted as well.

How to set up this PHP antispam class and use it on your website?

1. Download the code of MathGuard

Go to the download section on this website and find there the mathguard.zip.

2. Unzip the archive and copy the

3. Open the code with the form you want to protect

4. Add the following code snippet (the one in the ellipse)

5. Protect the form handler

6. Open the form in your browser and you should see the mathguard's security question there

7. Example

There is also an example in the mathguard.zip. It features a simple form and one simple form handler which displays the data.

8. Enjoy !

If you'd have any questions, feel free to write to the comments or directly to my email.

CodeGravity.com


All versions of mathguard with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zexbre/mathguard contains the following files

Loading the files please wait ...