PHPackages                             scragg0x/votesmart-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. scragg0x/votesmart-php

ActiveLibrary[API Development](/categories/api)

scragg0x/votesmart-php
======================

votesmart.org API wrapper in php

0151

Since Jul 6Pushed 12y ago1 watchersCompare

[ Source](https://github.com/scragg0x/votesmart-php)[ Packagist](https://packagist.org/packages/scragg0x/votesmart-php)[ RSS](/packages/scragg0x-votesmart-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

votesmart-php
=============

[](#votesmart-php)

VERY simple api wrapper for votesmart.org.

Install
-------

[](#install)

The recommended way is [through composer](http://getcomposer.org). 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
-------------

[](#api-reference)

Example
-------

[](#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() );
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc8a95234ac359a20618a358ad482997764df2446f821f96df6b582a541ee3a4?d=identicon)[scragg0x](/maintainers/scragg0x)

---

Top Contributors

[![scragg0x](https://avatars.githubusercontent.com/u/222611?v=4)](https://github.com/scragg0x "scragg0x (3 commits)")

### Embed Badge

![Health badge](/badges/scragg0x-votesmart-php/health.svg)

```
[![Health](https://phpackages.com/badges/scragg0x-votesmart-php/health.svg)](https://phpackages.com/packages/scragg0x-votesmart-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
