adamthehutt/propublica-php

A simple PHP client for Propublica's API

Installs: 2 225

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/adamthehutt/propublica-php

v0.1.3 2022-02-24 21:33 UTC

This package is auto-updated.

Last update: 2025-09-25 05:44:09 UTC


README

A simple PHP client for accessing ProPublica's API.

This is currently very bare bones and only supports a tiny subset of the available endpoints. Pull requests for expanded coverage are welcome.

Installation

composer require adamthehutt/propublica-php

Usage

use AdamTheHutt\ProPublica\NonprofitExplorer\Organizations\Request;

$propublica = new Request();
$valid = $propublica->validEin("123456789"); 
\\ false because that's not real organization's EIN

$response = $propublica->get("53-0196605");
\\ $response->organization->name ... American National Red Cross
\\ $response->organization->nteeCode ... P210