Download the PHP package danbettles/defence without Composer

On this page you can find all versions of the php package danbettles/defence. 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 defence

Defence

Scrutinizer Code Quality Code Coverage Build Status

A simple intrusion detection/prevention system framework written in PHP.

Defence is used principally to:

  1. :shield: Prevent a suspicious-looking request getting deeper into an application's code and potentially exploiting vulnerabilities.
  2. :seedling: Avoid wasting further system resources on unfriendly user activity.

Recently, we have found Defence to be been extremely helpful in quickly mitigating the effects of overzealous bots, particularly those involved in information-gathering for AI. Excessive and/or faulty requests can negatively affect the experience of other users of the system and waste resources—including electricity.

[!WARNING] Defence does not eliminate the need to filter user-input in your application. While some of the included filters do indeed validate user input, they take a very high-level view. Their aim is to detect obviously suspect values given a very basic understanding of what they're looking at. For example, the included ID-parameter filter knows only that certain parameters must contain only digits or a blank; the filter is useful because it can quickly and easily prevent SQL injection, but the value may still be invalid as far as your app is concerned.

We recommend you read the documentation starts here.


All versions of defence with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
danbettles/gestalt Version ^4.0
symfony/http-foundation Version ^4.4.7|^5.0|^6.0
psr/log Version ^2.0.0|^3.0.0
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 danbettles/defence contains the following files

Loading the files please wait ....