This demo application shows you how you can use our PHP SDK to track events and update properties.
$ composer installCopy the .env-example file and paste your API key generated via system.journy.io
$ cp .env-example .env$ php -S localhost:3000 -t publicThe demo application is a shop manager, you can log in with the following users:
- [email protected] with any password
- [email protected] with any password
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

