Download the PHP package preverus/preverus-php without Composer

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

Preverus PHP

Framework-agnostic PHP client for Preverus backend enforcement.

Website: https://preverus.com
Documentation: https://preverus.com/docs

Use this package when your application already loads the hosted Preverus browser script and your backend needs to make trusted server-side calls with a private server key.

Install

Requires PHP 8.1+ and ext-json.

Browser And Server Flow

For server-rendered or non-JS-build sites, load the hosted script in your HTML:

Before submit, the script attaches:

Your backend sends those fields to Preverus with your private server key before approving sensitive actions.

Never put your server key in browser code.

Quick Start

Prefer risk_session_token when available. It references the stored browser session collected by the hosted script. The token lets Preverus use the full browser/device context without your backend handling raw browser feature vectors.

Configuration

Default retry behavior is intentionally conservative for web requests. The client retries transient network failures and these statuses:

The client does not retry validation or authentication errors such as 400, 401, 403, or 422.

For POST calls, pass an idempotency key when the operation may be retried:

Decisions

Recommended production behavior:

Events

Use events for fraud-relevant activity that does not need a synchronous decision.

Visitor Lookup

Metadata Lookup

Use metadata lookup for values such as email, phone, username, and payment address when you want to understand reuse across users or visitors.

Webhook Verification

Reject webhook requests when:

Webhook delivery is at-least-once, so store X-Fraud-Webhook-Id or payload id as an idempotency key.

You can also verify, parse, and dispatch events in one flow:

Error Handling

The core client throws exceptions for API and network failures:

If you want built-in fail-open/fail-review/fail-closed fallback decisions, use preverus/preverus-laravel or implement the same policy in your framework.

Production Checklist


All versions of preverus-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
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 preverus/preverus-php contains the following files

Loading the files please wait ...