Skip to content

scragg0x/votesmart-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

votesmart-php

VERY simple api wrapper for votesmart.org.

Install

The recommended way is through composer. Just create a composer.json file and run the php composer.phar install command to install it:

{
    "require": {
        "scragg0x/votesmart-php": "dev-master"
    }
}

API Reference

http://votesmart.org/share/api

Example

require_once __DIR__ . "/../vendor/autoload.php";

use VoteSmart\Client;

// You need to obtain a key
$key = '';

$c = new Client($key, 'json');

print_r( $c->get('Officials.getByZip', array('zip5' => 76131))->json() );

About

Simpe PHP wrapper for votesmart.org API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published