PHPackages                             triggmine/triggmine-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. triggmine/triggmine-sdk-php

ActiveProject

triggmine/triggmine-sdk-php
===========================

PHP SDK library for TriggMine API

3.0.23(8y ago)028MITPHPPHP &gt;=5.4

Since Apr 13Pushed 8y ago3 watchersCompare

[ Source](https://github.com/TriggMineAdmin/triggmine-sdk-php)[ Packagist](https://packagist.org/packages/triggmine/triggmine-sdk-php)[ RSS](/packages/triggmine-triggmine-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

TriggMine-SDK-PHP
=================

[](#triggmine-sdk-php)

Description
-----------

[](#description)

TriggMine is an automated email marketing platform, tailored to the eCommerce needs. We've harnessed the power of behavioral-based email workflows! In real time, our system automatically tracks customers behavior and separates them into highly relevant, behavior-focused segments and sends them highly personalized emails.

It takes less than 30 minutes to launch fully automated email campaign! Now marketers can finally watch your email open rates, clicks and sales sky rocket, without hiring tech experts or touching a single line of code!

TriggMine web site:

Composer
--------

[](#composer)

To install TriggMine SDK via Composer, run the following command:

`$ composer require triggmine/triggmine-sdk-php`

How-to
------

[](#how-to)

TriggMine API сan take 9 types of events. All events models send through SendEvent method.

#### Event list with model type

[](#event-list-with-model-type)

**Event type****Model**RegistrationProspectEventCartCartEventOrder HistoryOrderHistoryEventCustomer HistoryCustomerHistoryEventLoginLoginEventLogoutLogoutEventNavigationNavigationEventOrderOrderEventDiagnosticPluginDiagnosticEvent### Example

[](#example)

```
require 'vendor/autoload.php';

use TriggMineSDK\Models\ProspectEvent;
use TriggMineSDK\Events\TriggMineApi;

//Instance TriggMine API with your ApiKey and ApiUrl
//Your ApiKey && ApiUrl > https://client.triggmine.com.ua/login > Settings > Integration
$client = new TriggMineApi( 'YOUR API URL', 'YOUR API KEY' );

//Registration event example
$dataCustomer = new ProspectEvent;
$dataCustomer->device_id             = "4c3d48512d48b2603092b5a45ba74c8c";
$dataCustomer->device_id_1           = "465060737";
$dataCustomer->customer_id           = 567;
$dataCustomer->customer_first_name   = "John";
$dataCustomer->customer_last_name    = "Doe";
$dataCustomer->customer_email        = "johndoe@triggmine.com";
$dataCustomer->customer_date_created = "2017-06-08";

$response = $client->SendEvent( $dataCustomer );
```

### Models fields description

[](#models-fields-description)

**Field****Description**device\_idDevice hash generated by FingerprintJS\*device\_id\_1Device hash generated by ClientJS\*customer\_idCustomer Id\*customer\_first\_nameCustomer Namecustomer\_last\_nameCustomer Last Namecustomer\_emailCustomer Emailcustomer\_date\_createdCustomer Registration Dateorder\_idOrder Idorder\_statusOrder status (Pending, Paid, Closed etc)price\_totalTotal amount of orderproduct\_categoriesItem categoriesproduct\_descItem descriptionproduct\_idItem IDproduct\_imageItem full path imageproduct\_nameItem nameproduct\_priceItem priceproduct\_qtyItem quantityproduct\_skuItem vendor codeproduct\_totalItem summary priceproduct\_urlItem full path urlqty\_totalOrder quantityuser\_agentUser-Agent header. Optional parameterFor more detailed documentation see:

Device hash [ClientJS](https://clientjs.org/)*, [FingerprintJS](https://valve.github.io/fingerprintjs/)* - We recommend to use ClientJS and FingerprintJS library for definition unique hash of client device and software. It's need for identify client without his loging.

Customer Id\* - Unique Id of a Customer in your DB.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~81 days

Total

4

Last Release

3070d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33aac6d57e4c52a9f4ad37b695f54f2f3850e7431708923ab4149e99e796bb3a?d=identicon)[PauleHan](/maintainers/PauleHan)

![](https://www.gravatar.com/avatar/f6a073f4eb153217ba833ba54f46becc889c9efd755d3c2d3318e20e984eac31?d=identicon)[TriggMine](/maintainers/TriggMine)

![](https://www.gravatar.com/avatar/e132b3be55ebab4add761acd92611e49275e1a17318e100f1ae81edcb18c57e2?d=identicon)[mikhrock](/maintainers/mikhrock)

---

Top Contributors

[![TriggMineAdmin](https://avatars.githubusercontent.com/u/13350250?v=4)](https://github.com/TriggMineAdmin "TriggMineAdmin (13 commits)")

---

Tags

composerpackagetriggmine

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/triggmine-triggmine-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/triggmine-triggmine-sdk-php/health.svg)](https://phpackages.com/packages/triggmine-triggmine-sdk-php)
```

###  Alternatives

[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M62](/packages/jean85-pretty-package-versions)[composer/satis

Simple Repository Generator

3.3k1.4M17](/packages/composer-satis)[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M398](/packages/codedungeon-phpunit-result-printer)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
