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

AbandonedArchivedLibrary[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 3w 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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

1771d 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

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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