Skip to content

journy-io/php-sdk-demo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

journy.io

Demo application PHP SDK

This demo application shows you how you can use our PHP SDK to track events and update properties.

Setup

Install dependencies

$ composer install

Copy the .env-example file and paste your API key generated via system.journy.io

$ cp .env-example .env

Start application

$ php -S localhost:3000 -t public

How it works

The demo application is a shop manager, you can log in with the following users:

They are both admin of each other's shop.

  • HandlerLogin.php: The user will be created or updated in journy.io along with the shops where the user is an admin, we'll also send a "logged_in" event
  • HandlerLogout.php: After the user is logged out, we'll send a "logged_out" event
  • HandlerProductsAdd.php: After a product is added, we'll send a "product_added" event
  • HandlerProductsDelete.php: After a product is removed, we'll send a "product_removed" event

About

🎪 Demo application showcasing how to use our PHP SDK.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published