PHPackages                             inspetor/inspetor-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. inspetor/inspetor-php

AbandonedArchivedLibrary[Security](/categories/security)

inspetor/inspetor-php
=====================

Inspetor Antifraud PHP library

1.0.2(6y ago)07MITPHPPHP &gt;=7.1.3

Since Jul 1Pushed 6y ago14 watchersCompare

[ Source](https://github.com/inspetor/inspetor-php)[ Packagist](https://packagist.org/packages/inspetor/inspetor-php)[ RSS](/packages/inspetor-inspetor-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (24)Used By (0)

 [![Inspetor Logo](https://github.com/inspetor/slate/raw/master/source/images/logo-color.png)](https://github.com/inspetor/slate/blob/master/source/images/logo-color.png)

Description
-----------

[](#description)

Inspetor is a product developed to help your company to avoid fraudulent transactions. This repository contains the PHP SDK for you to integrate into your company's PHP services, which will allow Inspetor to analyze user patterns and prevent fraudulent transactions. This README file, along with our [generalized integration documentation](https://inspetor.github.io/docs-backend) are here to help you to integrate the Inspetor PHP library into your product with few easy steps.

Setup Guide
-----------

[](#setup-guide)

This is the step-by-step Inspetor integration:

### Composer &amp; Packagist

[](#composer--packagist)

We recommend using [Composer](https://getcomposer.org/doc/00-intro.md) to add the Inspetor SDK to your PHP project's dependencies. The Inspetor SDK is available on [Packagist](https://packagist.org/packages/inspetor/inspetor-php), or directly on [GitHub](https://github.com/inspetor/inspetor-php).

You can add the Inspetor SDK to your Composer-managed PHP project as follows:

`composer require inspetor/inspetor-php:${VERSION}`

Following this command, the Inspetor SDK should be listed in your composer.json 'require' block and the package source files should be present in your vendor folder.

### SDK setup

[](#sdk-setup)

To instantiate the Inspetor client object within your project, you'll need to perform some minimal configuration. We suggest adding a similar block to your application configuration:

```
'inspetor_config' => [
  'trackerName' => company.service_name // provided by Inspetor
  'appId'       => unique.number // provided by Inspetor
  'devEnv'      => false // whether or not the data sent from this tracker should be considered production or not.
]

```

We suggest creating an `Inspetor` class in which to instantiate you `InspetorClient`, then provide the instantiated client object to your various internal clients. This will ensure that your `InspetorClient` object has been properly configured prior to being called:

```

```

### Using the Inspetor client

[](#using-the-inspetor-client)

Detailed method information and language-specific examples are all available in the [Inspetor integration documentation](https://inspetor.github.io/docs-backend). There you will find definitions, examples, and references for fundamental Inspetor entities. But just to get you started, we'll provide a practical example for interacting with our SDK below.

Let's imagine that you want to put a tracker in your *"create transaction"* flow to send analytic information to Inspetor at sale creation time. As you may have guessed (if you've read the docs), you'll be calling the `inspetorSaleCreation` method.

Naturally, the `inspetorSaleCreation` method requires certain characteristics of the sale creation to be send to Inspetor for analysis. Those attributes are captured in a **model** (specifically, the [InspetorSale](https://inspetor.github.io/docs-backend/#inspetorsale) model). You can find more general information on Inspetor's concept of **models** [here](https://inspetor.github.io/docs-backend/#models).

Here's an example of how you would integrate this into your code base:

```

```

Note that we are using an auxiliar function *inspetorSaleBuilder* to build the *Sale Model*. This is not strictly necessary, but we imagine you will find such a practice preferable.

Support
-------

[](#support)

Feel free to reach out to the [Inspetor team](support@useinspetor.com) if you encounter any problems during your integration.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Total

3

Last Release

2439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc08e8a4fe39036666f71d1f7c349339fb8673c378291de4e8df77d821675122?d=identicon)[inspetor](/maintainers/inspetor)

---

Top Contributors

[![theosato](https://avatars.githubusercontent.com/u/28405063?v=4)](https://github.com/theosato "theosato (91 commits)")[![pearsonhenri](https://avatars.githubusercontent.com/u/6347812?v=4)](https://github.com/pearsonhenri "pearsonhenri (13 commits)")[![lbiselli](https://avatars.githubusercontent.com/u/7004606?v=4)](https://github.com/lbiselli "lbiselli (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inspetor-inspetor-php/health.svg)

```
[![Health](https://phpackages.com/badges/inspetor-inspetor-php/health.svg)](https://phpackages.com/packages/inspetor-inspetor-php)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
