Skip to main content

PHP Integration

This guide shows how to integrate TxnCheck API into your PHP application.

Installation

Using cURL

cURL is built into PHP, no installation needed.

Basic Client Setup (Guzzle)

Basic Client Setup (cURL)

Usage Examples

Async Mode (Default)

Sync Mode

Full Check

VPA Blocklist Check

Error Handling

Webhook Signature Verification

Laravel Service Provider

Complete Integration Example

Next Steps

Webhooks Guide

Set up webhooks for async notifications

Error Handling

Handle API errors properly

Security Best Practices

Secure your integration

Use Cases

See real-world examples