New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adamthehutt/propublica-php

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adamthehutt/propublica-php

A simple PHP client for Propublica's API

Source
Packagist
Version
v0.1.3
Version published
Total downloads
2.2K
Maintainers
1
Created
Source

ProPublica-PHP

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

FAQs

Package last updated on 24 Feb 2022

Related posts