PHPackages                             odinshat/twfy-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. odinshat/twfy-php

ActiveLibrary[API Development](/categories/api)

odinshat/twfy-php
=================

A simple wrapper library for the TheyWorkForYouAPI

v1.0.1(4y ago)14BSD-3-ClausePHP

Since Aug 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/OdinsHat/twfy-php)[ Packagist](https://packagist.org/packages/odinshat/twfy-php)[ RSS](/packages/odinshat-twfy-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (4)Versions (8)Used By (0)

TheyWorkForYou PHP SDK
======================

[](#theyworkforyou-php-sdk)

twfy-php
--------

[](#twfy-php)

An up-to-date, simple wrapper to the [TheyWorkForYouAPI](https://theyworkforyou.org) written in PHP.

It can be easily installed using [Composer](https://getcomposer.org) with the following command:

`composer require odinshat/twfy-php`

After that you can use it in you project by simply including it with:

`use OdinsHat\Twfy`

Then here's a basic example:

```
$twfyapi = new TWFYAPI('DpPSWnGj7XPRGePtfMGWvGqQ');

$mps = $twfyapi->query('getMPs', array('output' => 'xml', 'party' => 'labour'));

header('Content-type: application/xml');
echo $mps;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1724d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1061673?v=4)[Doug](/maintainers/OdinsHat)[@OdinsHat](https://github.com/OdinsHat)

---

Top Contributors

[![OdinsHat](https://avatars.githubusercontent.com/u/1061673?v=4)](https://github.com/OdinsHat "OdinsHat (25 commits)")

---

Tags

apiapi-clientphp-libraryphp-sdkphp7politicssdksociety

###  Code Quality

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/odinshat-twfy-php/health.svg)

```
[![Health](https://phpackages.com/badges/odinshat-twfy-php/health.svg)](https://phpackages.com/packages/odinshat-twfy-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)
