IFTTT Shim API
A Slim 3 PHP middleware API to translates calls between IFTTT and various Louisville Metro Government APIs.
After cloning this repo, there are a couple of preparation steps that must be taken in order to get everything set up.
composer installat the root of the repo, to pull in all the required dependencies
A config file is required in order to specify your special environment variables such as API keys and special URLs. We have provided an
example.config.phpfile for you to start with. We recommend that you place this file somewhere outside of the project folder. Usually, you will have three of these files,
prod.config.phpwhich contains the correct variables for each environment.
With that being said, in
src/dependencies.php, you will find an
$envvariable that is used to load the proper environment configuration file, as well as the location of those files. In this example, the configuration files are located one level up from the root folder, but you can place it anywhere you'd like and point it to the proper location in the
You will need to create the tables described in the schema file that we've provided at