{"id":16688246,"url":"https://github.com/odinshat/twfy-php","last_synced_at":"2025-12-30T02:23:01.743Z","repository":{"id":47542273,"uuid":"398508835","full_name":"OdinsHat/twfy-php","owner":"OdinsHat","description":"An up-to-date but simple wrapper to the TheyWorkForYouAPI","archived":false,"fork":false,"pushed_at":"2021-08-27T09:52:53.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T13:21:30.202Z","etag":null,"topics":["api","api-client","php-library","php-sdk","php7","politics","sdk","society"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OdinsHat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-21T08:42:03.000Z","updated_at":"2021-08-27T09:52:02.000Z","dependencies_parsed_at":"2022-09-22T14:41:21.110Z","dependency_job_id":null,"html_url":"https://github.com/OdinsHat/twfy-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OdinsHat%2Ftwfy-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OdinsHat%2Ftwfy-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OdinsHat%2Ftwfy-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OdinsHat%2Ftwfy-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OdinsHat","download_url":"https://codeload.github.com/OdinsHat/twfy-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243451536,"owners_count":20293152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","php-library","php-sdk","php7","politics","sdk","society"],"created_at":"2024-10-12T15:27:22.147Z","updated_at":"2025-12-30T02:23:01.706Z","avatar_url":"https://github.com/OdinsHat.png","language":"PHP","readme":"# TheyWorkForYou PHP SDK\n\n## twfy-php\n\nAn up-to-date, simple wrapper to the [TheyWorkForYouAPI](https://theyworkforyou.org) written in PHP.\n\nIt can be easily installed using [Composer](https://getcomposer.org) with the following command:\n\n`composer require odinshat/twfy-php`\n\nAfter that you can use it in you project by simply including it with:\n\n`use OdinsHat\\Twfy`\n\nThen here's a basic example:\n\n```php\n$twfyapi = new TWFYAPI('DpPSWnGj7XPRGePtfMGWvGqQ');\n\n$mps = $twfyapi-\u003equery('getMPs', array('output' =\u003e 'xml', 'party' =\u003e 'labour'));\n\nheader('Content-type: application/xml');\necho $mps;\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodinshat%2Ftwfy-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodinshat%2Ftwfy-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodinshat%2Ftwfy-php/lists"}