dosomething / mobilecommons-php
A PHP wrapper for the Mobile Commons API
Installs: 441
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 10
Forks: 2
pkg:composer/dosomething/mobilecommons-php
Requires
- php: >= 5.3.0
- ext-curl: *
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-10-07 11:49:26 UTC
README
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