2017 © Pedro Peláez
 

library mintance-php

The Official PHP library for Mintance

image

mintance/mintance-php

The Official PHP library for Mintance

  • Tuesday, September 5, 2017
  • by peterborodatyy
  • Repository
  • 1 Watchers
  • 3 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Mintance PHP Library

This library provides an API to track events and update profiles on Mintance., (*1)

Install with Composer

Add mintance/mintance-php as a dependency and run composer update, (*2)

$ composer require mintance/mintance-php

Or:, (*3)

{
    "require": {
        "mintance/mintance-php" : "1.*"
    }
}

Now you can start tracking events and people:, (*4)

<?php
// Import dependencies
require 'vendor/autoload.php';

// Create Mintance class, replace with your project token
$mt = new Mintance("PROJECT_TOKEN");

// Identify your contact.
$mt->people->setIdentifier("my_people_id");

// Track an event
$mt->track("button clicked", array("label" => "sign-up")); 

// Create/Update a profile for user id 12345
$mt->people->set(array(
    'first_name'       => "John",
    'last_name'        => "Doe",
    'email'            => "john.doe@example.com",
    'phone'            => "5555555555",
    // Custom fields
    'Favorite Color'    => "red"
));

Install Manually

  1. Download the Mintance PHP Library
  2. Extract the zip file to a directory called "mintance-php" in your project root
  3. Now you can start tracking events and people:
<?php
// Import Mintance
require 'mintance-php/src/Mintance.php';

// Create Mintance class, replace with your project token
$mt = new Mintance("PROJECT_TOKEN");

// Track an event
$mt->track("button clicked", array("label" => "sign-up")); 

// Create/Update a profile for user id 12345
$mt->people->set(array(
    'first_name'       => "John",
    'last_name'        => "Doe",
    'email'            => "john.doe@example.com",
    'phone'            => "5555555555",
    // Custom fields
    'Favorite Color'    => "red"
));

The Versions

05/09 2017

dev-master

9999999-dev https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php

05/09 2017

1.0.5

1.0.5.0 https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php

04/09 2017

1.0.4

1.0.4.0 https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php

29/08 2017

1.0.3

1.0.3.0 https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php

02/04 2017

1.0.2

1.0.2.0 https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php

02/04 2017

1.0.1

1.0.1.0 https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php

02/04 2017

1.0

1.0.0.0 https://mintance.com

The Official PHP library for Mintance

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

mintance mintance php