adamthehutt/propublica-php

A simple PHP client for Propublica's API

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

This package is auto-updated.

Last update: 2024-04-25 02:22:06 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