Provides a step debugger in the php runtime with xdebug and some functions commonly used in workflow trigger development. Can be used to speed up development of workflow triggers by providing code completion for ee functions and allowing the designer to inspect results from ee function calls and see the exact data structures returned.
Also provides working examples of use PHP curl commands to interact with Ethos APIs.
Steps to use
-
Download and install git, visual studio code, and docker desktop if needed.
-
In VS code add 'Remote - Containers' extension
-
From command prompt at the location of your preferred working directory clone the repository
git clone https://github.com/eli-hickey/trigger-helpers.git
-
In VS Code use command pallet command 'Remote-Containers: Open Folder in Container...' and select the trigger-helpers folder created by the git clone command.
-
Rename /project/scripts/setup/env.example to .env and add your api key and region to it (US = 'com', Canada = 'ca' ...)
-
Run the Demo ethosExamples to verify everything is working
- Open the /scripts/examples/ethosExamples.php
- Add a breakpoint on the last line
- Run (f5)
You are now ready to get your ethos data with some ee functions.
To refresh the provided functions periodically run git pull