1. Go to this page and download the library: Download soc-warden/php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soc-warden / php-sdk example snippets
use SOCWarden\SOCWarden;
$soc = new SOCWarden(
apiKey: 'your-api-key',
endpoint: 'https://ingestor.socwarden.com',
);
// Simple tracking with named arguments
$soc->track('auth.login.success', actorId: 'usr_123', actorEmail: '[email protected]');
// Track with metadata
$soc->track('data.exported', actorId: 'usr_456', metadata: ['format' => 'csv', 'rows' => 1500]);