2017 © Pedro Peláez
 

library sunlight-php

A PHP wrapper for Sunlight Foundation's API

image

contactmyreps/sunlight-php

A PHP wrapper for Sunlight Foundation's API

  • Thursday, March 3, 2016
  • by edfialk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

sunlight-php

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A limited PHP wrapper for the Sunlight Foundation APIs designed for use on contactmyreps.org, (*2)

Install

Via Composer, (*3)

``` bash $ composer require contactmyreps/sunlight-php, (*4)


## Usage ``` php $sunlight = new Sunlight($apikey); $openStates = $sunlight->openStates(); $congress = $sunlight->congress(); //get all Alabama's state legislators $states->legislators( [ 'state' => 'AL' ], ); //get all State reps serving a gps coordinate $states->geoLookup($lat, $lng); //get all Congressional representatives serving an area $congress->locateByZip(11111); $congress->locateByGeo($lat, $lng); $request methods can be passed an optional extra array argument of display fields to return (last_name, first_name, etc.)

Change log

Please see CHANGELOG for more information what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, please email edfialk@gmail.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

03/03 2016

dev-master

9999999-dev https://github.com/contactmyreps/sunlight-php

A PHP wrapper for Sunlight Foundation's API

  Sources   Download

MIT

The Requires

 

The Development Requires

contactmyreps sunlight-php

03/03 2016

v1.0

1.0.0.0 https://github.com/contactmyreps/sunlight-php

A PHP wrapper for Sunlight Foundation's API

  Sources   Download

MIT

The Requires

 

The Development Requires

contactmyreps sunlight-php