2017 © Pedro Peláez
 

library thingdom-php

The official PHP library for the Thingdom.io API

image

thingdomio/thingdom-php

The official PHP library for the Thingdom.io API

  • Friday, February 6, 2015
  • by thingdom
  • Repository
  • 4 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Thingdom PHP Library

PHP library for v1.1 of the Thingdom.io API., (*1)

What is Thingdom?

Thingdom allows you to mobile-enable your product in four lines of code with no need to develop the iOS and Android apps or create scalable cloud infrastructure. Get Started Now!, (*2)

, (*3)

Requirements

You must have cURL for PHP installed in order to use this library., (*4)

CentOS:, (*5)

sudo yum install php5-curl

Ubuntu:, (*6)

sudo apt-get install php5-curl

Getting started

First things first, Get your free API access. Next, if your not using composer, download this library and then try the following code., (*7)

<?php

require_once('Thingdom.php');

// instantiate Thingdom object and authenticate
$thingdom = new Thingdom('YOUR_API_SECRET');

// look-up Thing and get back object
$thing = $thingdom->getThing('YOUR_THING_NAME');

// send a feed message
$thing->feed('FEED_CATEGORY', 'MESSAGE');

// send a status update
$thing->status('KEY', 'VALUE');

If you would like to use composer instead then follow these directions., (*8)

  1. Install composer
  2. Create a new composer.json file with thingdomio/thingdom-php as a dependency (or add to your project's existing composer.json file), (*9)

    {
        "require": {
            "thingdomio/thingdom-php": "dev-master"
        }
    }
  3. Use composer to install the dependencies, (*10)

  4. Go ahead and try out the following code., (*11)

    <?php
    
    require_once __DIR__ . '/vendor/autoload.php'; // Autoload files using Composer autoload
    
    // instantiate Thingdom object and authenticate
    $thingdom = new Thingdom('YOUR_API_SECRET');
    
    // look-up Thing and get back object
    $thing = $thingdom->getThing('YOUR_THING_NAME');
    
    // send a feed message
    $thing->feed('FEED_CATEGORY', 'MESSAGE');
    
    // send a status update
    $thing->status('KEY', 'VALUE');

Ideas for Library Usage

  1. Programmatically trigger push notifications, feed messages, and real-time status updates from your PHP code.
  2. Remotely monitor any interaction with your PHP application or web server.
  3. With our quick drop-in integration and simple API calls you can mobile-enable your PHP application in a matter of hours, even customizing the mobile experience for your end-users.

The Versions

06/02 2015

dev-master

9999999-dev https://github.com/thingdomio/thingdom-php

The official PHP library for the Thingdom.io API

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

api curl thingdom