PHPackages                             andylolz/everypolitician-popolo - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. andylolz/everypolitician-popolo

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

andylolz/everypolitician-popolo
===============================

Parse EveryPolitician-flavoured Popolo data, and navigate it with PHP

0.0.3(9y ago)12021[3 issues](https://github.com/andylolz/everypolitician-popolo-php/issues)1MITPHPPHP ~5.6|~7.0

Since Dec 12Pushed 9y ago2 watchersCompare

[ Source](https://github.com/andylolz/everypolitician-popolo-php)[ Packagist](https://packagist.org/packages/andylolz/everypolitician-popolo)[ Docs](https://github.com/andylolz/everypolitician-popolo-php)[ RSS](/packages/andylolz-everypolitician-popolo/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (1)

everypolitician-popolo for PHP
==============================

[](#everypolitician-popolo-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5e8d6dde48682af84509de44e87b1329149586c4456abeefbc4ed18bf8cde008/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e64796c6f6c7a2f6576657279706f6c6974696369616e2d706f706f6c6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andylolz/everypolitician-popolo)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/38e98c48ac589dabd1e9b22dc5aa676029d3f754350a088953827ea0fa22d9b8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616e64796c6f6c7a2f6576657279706f6c6974696369616e2d706f706f6c6f2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/andylolz/everypolitician-popolo-php)[![Coverage Status](https://camo.githubusercontent.com/2e015d338c277887869c386ccefd5773784b755a62c428e51017af4affa73f10/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f616e64796c6f6c7a2f6576657279706f6c6974696369616e2d706f706f6c6f2d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/andylolz/everypolitician-popolo-php/code-structure)[![Quality Score](https://camo.githubusercontent.com/956e74cb87beb475574065de41ceaf9f8ca6ed4e53519c001b5f2510d681967f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616e64796c6f6c7a2f6576657279706f6c6974696369616e2d706f706f6c6f2d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/andylolz/everypolitician-popolo-php)[![Total Downloads](https://camo.githubusercontent.com/4b31a2d869a7a184721dac51e81acc4b058d9c68f940ad1be6746715dd17d711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e64796c6f6c7a2f6576657279706f6c6974696369616e2d706f706f6c6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andylolz/everypolitician-popolo)

This is a port of the Python package [everypolitician-popolo-python](https://github.com/everypolitician/everypolitician-popolo-python) to PHP, which itself is a port of the Ruby gem [everypolitician-popolo](https://github.com/everypolitician/everypolitician-popolo) to Python.

Install
-------

[](#install)

Via Composer

```
$ composer require andylolz/everypolitician-popolo
```

Usage
-----

[](#usage)

You can download a Popolo file manually from [EveryPolitician](http://everypolitician.org/).

The following example uses [Åland Lagting](https://github.com/everypolitician/everypolitician-data/raw/master/data/Aland/Lagting/ep-popolo-v1.0.json)(which is the legislature of the Åland islands, available as JSON data from the [EveryPolitician page for Åland](http://everypolitician.org/aland/)).

First you'll need to require the library and read in a file from disk.

```
use \EveryPolitician\EveryPoliticianPopolo\Popolo;
$popolo = Popolo::fromFilename('ep-popolo-v1.0.json');
```

All Popolo classes used by EveryPolitician are implemented:

- [Person](http://www.popoloproject.com/specs/person.html)
- [Organization](http://www.popoloproject.com/specs/organization.html)
- [Area](http://www.popoloproject.com/specs/area.html)
- [Event](http://www.popoloproject.com/specs/event.html)
- [Membership](http://www.popoloproject.com/specs/membership.html)

There are methods defined for each property on a class, e.g. for a Person:

```
count($popolo->persons); // 60
$person = $popolo->persons->first;
echo $person->id; // e3aab23e-a883-4763-be0d-92e5936024e2
echo $person->name; // Aaltonen Carina
echo $person->image; // http://www.lagtinget.ax/files/aaltonen_carina.jpg
echo $person->wikidata; // Q4934081
```

You can also find individual records or collections based on their attributes:

```
echo $popolo->persons->get(["name" => "Aaltonen Carina"]); //

$organizations = $popolo->organizations->filter(["classification" => "party"]);
foreach ($organizations as $organization) {
    echo $organization;
}
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Credits
-------

[](#credits)

- [All Contributors](https://github.com/andylolz/everypolitician-popolo-php/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

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 ~1 days

Total

3

Last Release

3487d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/464193?v=4)[Andy Lulham](/maintainers/andylolz)[@andylolz](https://github.com/andylolz)

---

Top Contributors

[![andylolz](https://avatars.githubusercontent.com/u/464193?v=4)](https://github.com/andylolz "andylolz (56 commits)")

---

Tags

everypoliticianpopolo

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/andylolz-everypolitician-popolo/health.svg)

```
[![Health](https://phpackages.com/badges/andylolz-everypolitician-popolo/health.svg)](https://phpackages.com/packages/andylolz-everypolitician-popolo)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k36](/packages/neuron-core-neuron-ai)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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