google/civic-client

There is no license information available for the latest version (dev-master) of this package.

Google Civic API Client

Maintainers

👁 Opus1no2

Package info

github.com/Opus1no2/Google-Civic-Client

pkg:composer/google/civic-client

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2013-07-10 18:40 UTC

Requires

None

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License fae11fd2b0b40e72caa364ad8f78db635d68b4f4

  • Travis Tillotson <tillotson.travis.woop@gmail.com>

This package is not auto-updated.

Last update: 2026-06-16 11:25:59 UTC


README

This is a minimalistic API client for Google Civic API

Installation

Installation is conveniently provided via Composer.

To get started, install composer in your project:

$ curl -s https://getcomposer.org/installer | php

Next, add a composer.json file containing the following:

}
 "require": {
 "google/civic-client": "dev-master"
 }
}

Finally, install!

$ php composer.phar install

Usage

Using the Google Civic client is easy:

<?php

require_once '../src/Client.php';

try {
 $client = new GoolgeCivic('YOUR API KEY');
 $result = $client->getElections();
} catch (Exception $e) {
 echo $e->getMessage();
}
print_r($result);