stackmash/stackmash-php

This package is abandoned and no longer maintained. No replacement package was suggested.

Stackmash for PHP

0.2.1 2019-04-07 21:36 UTC

This package is auto-updated.

Last update: 2021-12-06 13:20:05 UTC


README

Build Status

Stackmash - User monitoring notifications and logs. Stackmash gives you real-time notifications for any activity on your website or app, such as user sign-ups, payments, orders, errors, contact requests and more.

Requirements

  • PHP 5.4 and later
  • The cURL extension enabled within PHP
  • The JSON extension enabled within PHP

Install with Composer

Add stackmash/stackmash-php as a dependency. You can either install using the command:

composer require stackmash/stackmash-php

Or, add to your composer.json file:

"require": {
    ...
    "stackmash/stackmash-php": "^0.2.1"
    ...
}

and run

composer update

Start using Stackmash

Get your project and create actions for that project.

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

use Stackmash\Stackmash;

// Get the project you wish to create actions for
$project = Stackmash::getProject("PUBLIC_KEY", "PRIVATE_KEY");

// Create an action
$project->action("category-id-name", "New user signed up", [
    "Email address" => "john.doe@gmail.com",
    "Name" => "John Doe",
    "Date of birth" => "19/03/1986",
    "Interests" => [
        "Rocket building", "Football", "Programming"
    ]
]);

Install Manually

  1. Download Stackmash.
  2. Extract the ZIP file to a directory called "stackmash-php" in your project root.
  3. Import the Stackmash library.

Documentation

PHP documentation For support, email support@stackmash.com or visit https://stackmash.com/support.