PHP Classes

Light Controller: Trigger event in IFFTT using a Webhook

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 33 All time: 11,057 This week: 75Up
Version License PHP version Categories
light-controller 1.0MIT/X Consortium ...5PHP 5, Web services
Description 

Author

This class can trigger event in IFFTT using a Webhook.

It can send a HTTP request to the IFFTT Web server to call a given Webhook.

The class can take as parameters a service key, a event name and an array with parameters to be passed to IFFTT in JSON format.

Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 37 packages by
Country: Taiwan Taiwan
Age: 31
All time rank: 21066 in Taiwan Taiwan
Week rank: 20 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 17x

Winner: 1x

Documentation

Installation

composer require lee/light-controller

Usage

require_once './vendor/autoload.php';

use lee\Light;

$light = new Light('event_name', 'ifttt-webhook-maker-service-key');
$light->sendRequest(); // GuzzleHttp\Psr7\Response;

References

  • https://ifttt.com/maker_webhooks

  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
  Plain text file Light.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:33
This week:0
All time:11,057
This week:75Up