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.
- PHP 5.4 and later
- The cURL extension enabled within PHP
- The JSON extension enabled within PHP
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
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"
]
]);
- Download Stackmash.
- Extract the ZIP file to a directory called "stackmash-php" in your project root.
- Import the Stackmash library.
PHP documentation For support, email support@stackmash.com or visit https://stackmash.com/support.