adamthehutt / propublica-php
A simple PHP client for Propublica's API
Installs: 2 223
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 8.2.1
This package is auto-updated.
Last update: 2025-02-25 04:11:36 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