dosomething/mobilecommons-php

A PHP wrapper for the Mobile Commons API

1.0.2 2014-05-23 14:22 UTC

README

Build Status

Mobile Commons API Client for PHP by DoSomething.org

A PHP wrapper for the Mobile Commons REST and mData API.

http://www.mobilecommons.com/mobile-commons-api/

Requirements

  • PHP 5 (Tested against 5.3)
  • cURL extension
  • SimpleXML extension

Installation

Via Composer:

Available on Packagist as the dosomething/mobilecommons-php package

Usage

$config = array(
  'username' => USERNAME, // Mobile commons username
  'password' => PW // Mobilecommons password
);

$MobileCommons = new MobileCommons($config);

$campaigns = $MobileCommons->campaigns();

print_r($campaigns); // Print list of campaigns

License

This library is released under the MIT License