Get up and running in under 5 minutes
use Aigis\FraudDetection\Client;
// Initialize client with your API key
$aigis = new Client([
'api_key' => 'your_api_key_here',
'environment' => 'production'
]);
// Analyze a transaction
$result = $aigis->analyzeTransaction([
'amount' => 149.99,
'currency' => 'USD',
'email' => 'customer@example.com'
]);
if ($result->isFraud()) {
throw new FraudException('Fraud detected!');
}
const { AigisClient } = require('@aigis/fraud-detection');
const aigis = new AigisClient({
apiKey: 'your_api_key_here'
});
const result = await aigis.analyzeTransaction({
amount: 149.99,
currency: 'USD',
email: 'customer@example.com'
});
if (result.isFraud) {
console.warn('Transaction Blocked');
}
from aigis import FraudClient
client = FraudClient(api_key='your_key')
result = client.analyze({
'amount': 149.99,
'currency': 'USD',
'email': 'user@example.com'
})
if result.is_fraud:
raise Exception(f"Risk Score: {result.score}")
import { useAigis } from '@aigis/react';
const Checkout = () => {
const { analyze } = useAigis();
const handleSubmit = async () => {
const result = await analyze({ amount: 100 });
if (result.safe) {
// Process payment
}
};
};
Sub-15ms response time with global edge caching
Full TypeScript & PHP type definitions included
Built-in retry logic with exponential backoff