承接 vemetric/vemetric-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vemetric/vemetric-php

最新稳定版本:v0.2.0

Composer 安装命令:

composer require vemetric/vemetric-php

包简介

Official PHP SDK for Vemetric

README 文档

README

Vemetric PHP SDK

The Vemetric SDK for PHP

Learn more about the Vemetric PHP SDK in the official docs.

You can also checkout the package on Packagist.

Packagist Version

Installation

composer require vemetric/vemetric-php

Usage

<?php
require __DIR__ . '/../vendor/autoload.php';

use Vemetric\Vemetric;

$vemetric = new Vemetric([
  'token' => 'YOUR_PROJECT_TOKEN',
]);

// Track an event
$vemetric->trackEvent('SignupCompleted', [
  'userIdentifier' => 'user-id',
  'userDisplayName' => 'John Doe',
  'eventData'      => ['key' => 'value'],
]);

// Update user data
$vemetric->updateUser([
  'userIdentifier' => 'user-id',
  'userData'       => [
    'set' => ['key1' => 'value1'],
    'setOnce' => ['key2' => 'value2'],
    'unset' => ['key3'],
  ],
]);

Configuration

The client can be configured with the following options:

$vemetric = new Vemetric([
  'token' => 'YOUR_PROJECT_TOKEN', // Required
  'host' => 'https://hub.vemetric.com', // Optional, defaults to https://hub.vemetric.com
]);

统计信息

  • 总下载量: 156
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-22