Download the PHP package opportify/opportify-sdk-php without Composer

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

Tests Packagist Downloads Packagist Version License

Opportify-SDK-PHP

Table of Contents

Overview

The Opportify SDK gives your PHP application access to the full Opportify platform:

Product Purpose
Email Insights Validate, enrich, and score email addresses
IP Insights Geolocate, enrich, and assess risk for IP addresses
Fraud Protection Analyze form submissions for fraud risk across email, IP, geo, session, and velocity signals

All products share a common API key and the same SDK installation.

Sign Up Free

Base URLs

Product Base URL
Email & IP Insights https://api.opportify.ai/insights/v1/
Fraud Protection https://api.opportify.ai/intel/v1/

Requirements

Requires PHP v8.1 or later.

Getting Started

First, install Opportify via the Composer package manager:

Calling Email Insights

Calling IP Insights

Calling Fraud Protection

Analyze a form submission for fraud risk. The response provides an overall risk score with a breakdown by signal source (email, IP, geo, session, velocity).

All parameter names accept both snake_case and camelCase (e.g. user_ip or userIp).

Batch Analysis (Email & IP)

You can submit multiple emails or IPs in a single request. Batch jobs are processed asynchronously; the response returns a job identifier (jobId) you can poll for status.

1. Batch Email Analysis (JSON)

2. Batch Email Analysis (Plain Text)

Provide one email per line and set the content type to text/plain.

3. Batch Email Analysis (File Upload)

Supply a .csv (one email per row; header optional) via batchAnalyzeFile(). A .csv triggers multipart/form-data; other extensions fall back to text/plain (newline-delimited body).

4. Batch IP Analysis (JSON)

5. Batch IP Analysis (Plain Text)

6. Batch IP Analysis (File Upload)

Convenience & Notes

Batch Export Jobs

Use batch exports to materialize filtered results from completed jobs. Exports run asynchronously and expose polling helpers similar to batch status checks.

Email Batch Exports

IP Batch Exports

Enabling Debug Mode

All wrappers support debug mode, which enables verbose HTTP logging via Guzzle:

You can also override the host, API prefix, or version for testing against staging environments:

Handling Errors

We strongly recommend wrapping all SDK calls in a try-catch to handle API errors.

Email Insights & IP Insights use OpenAPI\Client\ApiException:

Fraud Protection uses its own namespace OpenAPI\FraudIntel\Client\ApiException:

All ApiException instances expose the same interface:

Method Type Example
$e->getMessage() string "[403] Client error: POST https://api.opportify.ai/... resulted in a 403 Forbidden"
$e->getResponseBody() string '{"errorMessage":"Your plan does not support AI features","errorCode":"INVALID_PLAN"}'
$e->getCode() integer 403

About this package

This PHP package is a customization of the base generated by:


All versions of opportify-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
guzzlehttp/guzzle Version ^7.9
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 opportify/opportify-sdk-php contains the following files

Loading the files please wait ...